[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 04/05: Sort matches in executables last.

noreply at xfce.org noreply at xfce.org
Mon Sep 21 17:42:38 CEST 2015


This is an automated email from the git hooks/post-receive script.

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit ab9846b6e60a265ef382a203cd98fe0b64e6c71c
Author: Graeme Gott <graeme at gottcode.org>
Date:   Mon Sep 21 10:29:04 2015 -0400

    Sort matches in executables last.
---
 panel-plugin/launcher.cpp |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/panel-plugin/launcher.cpp b/panel-plugin/launcher.cpp
index ebe55cc..f35978a 100644
--- a/panel-plugin/launcher.cpp
+++ b/panel-plugin/launcher.cpp
@@ -291,15 +291,15 @@ guint Launcher::search(const Query& query)
 		return match | 0x800;
 	}
 
-	// Sort matches in executables after matches in names
-	match = query.match(m_search_command);
+	// Sort matches in comments next
+	match = query.match(m_search_comment);
 	if (match != G_MAXUINT)
 	{
 		return match | 0x1000;
 	}
 
-	// Sort matches in comments after matches in names
-	match = query.match(m_search_comment);
+	// Sort matches in executables last
+	match = query.match(m_search_command);
 	if (match != G_MAXUINT)
 	{
 		return match | 0x2000;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list