2008-09-04 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-media-player-keys.c: (ev_media_player_keys_grab_keys):
Grab the mediakeys with a low priority. Fixes bug #547164. Patch
by Eric Piel.
svn path=/trunk/; revision=3149
+2008-09-04 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * shell/ev-media-player-keys.c: (ev_media_player_keys_grab_keys):
+
+ Grab the mediakeys with a low priority. Fixes bug #547164. Patch
+ by Eric Piel.
+
2008-09-04 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-application.c: (ev_application_get_media_keys):
static void
ev_media_player_keys_grab_keys (EvMediaPlayerKeys *keys)
{
+ /*
+ * The uint as second argument is time. We give a very low value so that
+ * if a media player is there it gets higher priority on the keys (0 is
+ * a special value having maximum priority).
+ */
dbus_g_proxy_call (keys->proxy,
"GrabMediaPlayerKeys", NULL,
G_TYPE_STRING, "Evince",
- G_TYPE_UINT, 0,
+ G_TYPE_UINT, 1,
G_TYPE_INVALID, G_TYPE_INVALID);
}