[totem/wip/hadess/fix-mpris-after-launch] main: Fix media player controls not appearing in gnome-shell
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/fix-mpris-after-launch] main: Fix media player controls not appearing in gnome-shell
- Date: Thu, 14 Feb 2019 02:02:03 +0000 (UTC)
commit 9750e1312178d158ff54917f31067bef5e8b2c33
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 14 02:57:46 2019 +0100
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
src/totem-object.c | 2 ++
1 file changed, 2 insertions(+)
---
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]