diff options
author | Bastien Nocera <hadess@hadess.net> | 2019-02-14 02:57:46 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-02-14 02:57:46 +0100 |
commit | 9750e1312178d158ff54917f31067bef5e8b2c33 (patch) | |
tree | e2acfb44c5f4545fc72780571c49a96947ba4638 /src/totem-object.c | |
parent | b981fb1234c9bb04b5a9740fbebee286aa97c302 (diff) | |
download | totem-9750e1312178d158ff54917f31067bef5e8b2c33.tar.gz |
main: Fix media player controls not appearing in gnome-shell
Media player controls in gnome-shell wouldn't appear if totem was first
launched normally, and a video selected afterwards, but would work if
one double-clicked on a file.
The problem was that the controls would only show if the CanPlay MPRIS
property was set to true, and the plugin would only change that property
if it received a property notification for an MRL being set. Nothing
was sending that property notification though.
One line later, the property is sent, and the MPRIS plugin works whether
or not totem was opened with a double-click.
Closes: #208
Diffstat (limited to 'src/totem-object.c')
-rw-r--r-- | src/totem-object.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/totem-object.c b/src/totem-object.c index f24b1b7c6..46d9d79e1 100644 --- a/src/totem-object.c +++ b/src/totem-object.c @@ -1890,6 +1890,8 @@ totem_object_set_mrl (TotemObject *totem, totem_object_set_main_page (totem, "player"); } + g_object_notify (G_OBJECT (totem), "current-mrl"); + update_buttons (totem); update_media_menu_items (totem); } |