diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-02-08 19:19:07 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-02-08 19:19:07 +0000 |
commit | bf02109517f8e770373e13fc78cdda3019d77f04 (patch) | |
tree | 8ac695e9ac59e2b60930b53f7fcdca91d2311442 /src/indicator-sound.c | |
parent | d1e576becc28434d42e29640b8674342f8b6f521 (diff) | |
download | ayatana-indicator-sound-bf02109517f8e770373e13fc78cdda3019d77f04.tar.gz ayatana-indicator-sound-bf02109517f8e770373e13fc78cdda3019d77f04.tar.bz2 ayatana-indicator-sound-bf02109517f8e770373e13fc78cdda3019d77f04.zip |
mute ui updates from external intervention
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r-- | src/indicator-sound.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c index fe1b6fb..73a8a23 100644 --- a/src/indicator-sound.c +++ b/src/indicator-sound.c @@ -195,7 +195,8 @@ connection_changed (IndicatorServiceManager * sm, gboolean connected, gpointer u dbus_g_proxy_connect_signal(sound_dbus_proxy, SIGNAL_SINK_INPUT_WHILE_MUTED, G_CALLBACK(catch_signal_sink_input_while_muted), NULL, NULL); dbus_g_proxy_add_signal(sound_dbus_proxy, SIGNAL_SINK_VOLUME_UPDATE, G_TYPE_DOUBLE, G_TYPE_INVALID); dbus_g_proxy_connect_signal(sound_dbus_proxy, SIGNAL_SINK_VOLUME_UPDATE, G_CALLBACK(catch_signal_sink_volume_update), NULL, NULL); - +/* dbus_g_proxy_add_signal(sound_dbus_proxy, SIGNAL_SINK_MUTE_UPDATE, G_TYPE_BOOLEAN, G_TYPE_INVALID);*/ +/* dbus_g_proxy_connect_signal(sound_dbus_proxy, SIGNAL_SINK_MUTE_UPDATE, G_CALLBACK(catch_signal_sink_mute_update), NULL, NULL);*/ } } else { @@ -207,8 +208,7 @@ connection_changed (IndicatorServiceManager * sm, gboolean connected, gpointer u static void catch_signal_sink_input_while_muted(DBusGProxy * proxy, gint sink_index, gboolean value, gpointer userdata) { - //gtk_image_set_from_icon_name(speaker_image, "audio-volume-muted-blocking-symbolic", GTK_ICON_SIZE_MENU); - g_debug("signal caught - I don't believe it ! with index %i and value %i", sink_index, value); + g_debug("signal caught - sink input while muted with index %i and value %i", sink_index, value); } static void catch_signal_sink_volume_update(DBusGProxy * proxy, gdouble volume_percent, gpointer userdata) @@ -219,6 +219,15 @@ static void catch_signal_sink_volume_update(DBusGProxy * proxy, gdouble volume_p gtk_range_set_value(range, volume_percent); } +/*static void catch_signal_sink_mute_update(DBusGProxy * proxy, gdouble volume_percent, gpointer userdata)*/ +/*{*/ +/* g_debug("signal caught - update sink volume with value : %f", volume_percent);*/ +/* GtkWidget* slider = ido_scale_menu_item_get_scale((IdoScaleMenuItem*)volume_slider);*/ +/* GtkRange* range = (GtkRange*)slider; */ +/* gtk_range_set_value(range, volume_percent); */ +/*}*/ + + static void indicator_sound_dispose (GObject *object) { |