summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2014-09-07 18:52:33 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-09-07 18:52:33 -0300
commit2a722f6f23e57f9ef53ccfc5bca3e1b3fa613c58 (patch)
treec936e44a9ec8ac8e87333f969df350d23a7d8dc3 /src/bin
parent5b761f05d47e235756e83163a1880173e647cd2a (diff)
emixer: Fix port changes
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/sinks_view.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/bin/sinks_view.c b/src/bin/sinks_view.c
index f5a7f70..f5f7f67 100644
--- a/src/bin/sinks_view.c
+++ b/src/bin/sinks_view.c
@@ -16,7 +16,6 @@ struct Sinks_View
16 Ecore_Event_Handler *sink_removed; 16 Ecore_Event_Handler *sink_removed;
17}; 17};
18 18
19
20static Eina_Bool 19static Eina_Bool
21_disconnected_cb(void *data, int type EINA_UNUSED, void *info EINA_UNUSED) 20_disconnected_cb(void *data, int type EINA_UNUSED, void *info EINA_UNUSED)
22{ 21{
@@ -75,6 +74,21 @@ _sink_changed_cb(void *data, int type EINA_UNUSED, void *info)
75 it = elm_object_item_part_content_get(item, "mute"); 74 it = elm_object_item_part_content_get(item, "mute");
76 if (it) 75 if (it)
77 elm_check_state_set(it, sink->mute); 76 elm_check_state_set(it, sink->mute);
77
78 it = elm_object_item_part_content_get(item, "hover");
79 if (it)
80 {
81 Eina_List *l;
82 Emix_Port *sp;
83 elm_hoversel_clear(it);
84 EINA_LIST_FOREACH(sink->ports, l, sp)
85 {
86 elm_hoversel_item_add(it, sp->description, NULL,
87 ELM_ICON_NONE, NULL, sp);
88 if (sp->active)
89 elm_object_text_set(it, sp->description);
90 }
91 }
78 break; 92 break;
79 } 93 }
80 item = elm_genlist_item_next_get(item); 94 item = elm_genlist_item_next_get(item);