[gnome-settings-daemon/gnome-3-8] media-keys: Show shell search for search button



commit 36626bbb61cb23e6fc290162c5f8a95e6f4bf359
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 17 18:37:34 2013 +0200

    media-keys: Show shell search for search button
    
    https://bugzilla.gnome.org/show_bug.cgi?id=689672

 plugins/media-keys/gsd-media-keys-manager.c |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index d8f4c67..93cf14e 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -948,6 +948,19 @@ do_home_key_action (GsdMediaKeysManager *manager,
 }
 
 static void
+do_search_action (GsdMediaKeysManager *manager,
+                 gint64               timestamp)
+{
+        g_dbus_proxy_call (manager->priv->shell_proxy,
+                           "FocusSearch",
+                           NULL,
+                           G_DBUS_CALL_FLAGS_NO_AUTO_START,
+                           -1,
+                           manager->priv->shell_cancellable,
+                           NULL, NULL);
+}
+
+static void
 do_execute_desktop_or_desktop (GsdMediaKeysManager *manager,
                               const char          *desktop,
                               const char          *alt_desktop,
@@ -1987,10 +2000,7 @@ do_action (GsdMediaKeysManager *manager,
                 do_home_key_action (manager, timestamp);
                 break;
         case SEARCH_KEY:
-                do_execute_desktop_or_desktop (manager,
-                                               "tracker-needle.desktop",
-                                               "gnome-search-tool.desktop",
-                                               timestamp);
+                do_search_action (manager, timestamp);
                 break;
         case EMAIL_KEY:
                 do_url_action (manager, "mailto", timestamp);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]