From 1439c6546d0889fbfba5ed184cf34fc4e9f5126c Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 25 Feb 2013 14:23:28 +0200 Subject: [PATCH] player: Fix not emitting PropertiesChanged for Browsable and Searchable Browsable and Searchable should emit PropertiesChanged when their values changes. --- profiles/audio/player.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/profiles/audio/player.c b/profiles/audio/player.c index 50492fadc..729523528 100644 --- a/profiles/audio/player.c +++ b/profiles/audio/player.c @@ -959,6 +959,10 @@ void media_player_set_browsable(struct media_player *mp, bool enabled) DBG("%s", enabled ? "true" : "false"); mp->browsable = enabled; + + g_dbus_emit_property_changed(btd_get_dbus_connection(), + mp->path, MEDIA_PLAYER_INTERFACE, + "Browsable"); } void media_player_set_searchable(struct media_player *mp, bool enabled) @@ -966,6 +970,10 @@ void media_player_set_searchable(struct media_player *mp, bool enabled) DBG("%s", enabled ? "true" : "false"); mp->searchable = enabled; + + g_dbus_emit_property_changed(btd_get_dbus_connection(), + mp->path, MEDIA_PLAYER_INTERFACE, + "Searchable"); } static void media_player_set_folder_item(struct media_player *mp, -- 2.47.3