X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=shell%2Fev-media-player-keys.c;h=809e192d586dd4c4f3aa87ade84ac21d96dd3caa;hb=d3688d90ef2ac74632997a421a042e44534af9d9;hp=04d858f3217215875bb82138151d13c269027fa9;hpb=e01d6f5fd8c8682948d87cbfe3456a424652ad71;p=evince.git diff --git a/shell/ev-media-player-keys.c b/shell/ev-media-player-keys.c index 04d858f3..809e192d 100644 --- a/shell/ev-media-player-keys.c +++ b/shell/ev-media-player-keys.c @@ -88,10 +88,15 @@ on_media_player_key_pressed (DBusGProxy *proxy, 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); }