summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Bouchaud (yoz) <yoz@efl.so>2020-05-14 11:13:14 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-14 11:23:04 +0100
commitf4c1ba959e908dde14023aba7c7e55ce3b963d6e (patch)
treeac28dfc91abf9adf2ef3ec3c50052058952aae01 /src
parent7071faca6c618420f990b2c1ccdfac1035a49b2c (diff)
e_client_volume: Update the e_client frame object on sink del event
Reviewers: raster, devilhorns Subscribers: cedric, zmike Tags: #enlightenment-git Differential Revision: https://phab.enlightenment.org/D8928
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_client_volume.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/e_client_volume.c b/src/bin/e_client_volume.c
index d1a4eaa6e..4c52d5646 100644
--- a/src/bin/e_client_volume.c
+++ b/src/bin/e_client_volume.c
@@ -14,6 +14,7 @@ static void _e_client_volume_object_volume_changed(void *data, Evas_Object *obj,
14static void _e_client_volume_object_volume_drag_stop(void *data, Evas_Object *obj, void *event_info); 14static void _e_client_volume_object_volume_drag_stop(void *data, Evas_Object *obj, void *event_info);
15static Eina_Bool _e_client_volume_object_changed(void *data, int type, void *event); 15static Eina_Bool _e_client_volume_object_changed(void *data, int type, void *event);
16static void _e_client_volume_object_del_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info); 16static void _e_client_volume_object_del_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info);
17static void _e_client_volume_update(E_Client *ec);
17 18
18static void 19static void
19_e_client_volume_event_simple_free(void *d EINA_UNUSED, E_Event_Client *ev) 20_e_client_volume_event_simple_free(void *d EINA_UNUSED, E_Event_Client *ev)
@@ -179,7 +180,7 @@ e_client_volume_sink_del(E_Client_Volume_Sink *sink)
179 EINA_LIST_FREE(sink->clients, ec) 180 EINA_LIST_FREE(sink->clients, ec)
180 { 181 {
181 ec->sinks = eina_list_remove(ec->sinks, sink); 182 ec->sinks = eina_list_remove(ec->sinks, sink);
182 e_comp_object_frame_volume_update(ec->frame); 183 _e_client_volume_update(ec);
183 _e_client_volume_sink_event_simple(ec, sink, 184 _e_client_volume_sink_event_simple(ec, sink,
184 E_EVENT_CLIENT_VOLUME_SINK_DEL); 185 E_EVENT_CLIENT_VOLUME_SINK_DEL);
185 e_object_unref(E_OBJECT(ec)); 186 e_object_unref(E_OBJECT(ec));
@@ -285,9 +286,9 @@ _e_client_volume_update(E_Client *ec)
285 ec->mute = EINA_FALSE; 286 ec->mute = EINA_FALSE;
286 ec->volume_control_enabled = EINA_FALSE; 287 ec->volume_control_enabled = EINA_FALSE;
287 } 288 }
289 e_comp_object_frame_volume_update(ec->frame);
288 if (ec->volume_control_enabled) 290 if (ec->volume_control_enabled)
289 { 291 {
290 e_comp_object_frame_volume_update(ec->frame);
291 e_client_volume_display_set(ec, ec->volume, ec->mute); 292 e_client_volume_display_set(ec, ec->volume, ec->mute);
292 } 293 }
293} 294}