[rhythmbox] mmkeys: use old-style key grabs if dbus call fails



commit 60c88c00af81fc4ceac01f9d316de2cc0d20355d
Author: Pallai Roland <dap mail index hu>
Date:   Wed Nov 2 21:40:48 2011 +1000

    mmkeys: use old-style key grabs if dbus call fails
    
    https://bugzilla.redhat.com/show_bug.cgi?id=712463

 plugins/mmkeys/rb-mmkeys-plugin.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/mmkeys/rb-mmkeys-plugin.c b/plugins/mmkeys/rb-mmkeys-plugin.c
index 85f264f..1fdb2dc 100644
--- a/plugins/mmkeys/rb-mmkeys-plugin.c
+++ b/plugins/mmkeys/rb-mmkeys-plugin.c
@@ -345,6 +345,10 @@ first_call_complete (GObject *proxy, GAsyncResult *res, RBMMKeysPlugin *plugin)
 	if (error != NULL) {
 		g_warning ("Unable to grab media player keys: %s", error->message);
 		g_clear_error (&error);
+#ifdef HAVE_MMKEYS
+		mmkeys_grab (plugin, TRUE);
+		plugin->grab_type = X_KEY_GRAB;
+#endif
 		return;
 	}
 



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