aboutsummaryrefslogtreecommitdiff
path: root/src/slider-menu-item.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-01-27 16:10:48 -0600
committerConor Curran <conor.curran@canonical.com>2011-01-27 16:10:48 -0600
commit4e0d98ea31ff315c03d2a297af0743cd92acfedf (patch)
treeaa30531c2fdee93f00704365fd1bab2cfad1e30e /src/slider-menu-item.c
parentb6b241d47f33a67b6f61f9860a278a6582113835 (diff)
downloadayatana-indicator-sound-4e0d98ea31ff315c03d2a297af0743cd92acfedf.tar.gz
ayatana-indicator-sound-4e0d98ea31ff315c03d2a297af0743cd92acfedf.tar.bz2
ayatana-indicator-sound-4e0d98ea31ff315c03d2a297af0743cd92acfedf.zip
sink automatically unmuted now when slider is manually changed in accordance with the spec revision, plus some tidy ups
Diffstat (limited to 'src/slider-menu-item.c')
-rw-r--r--src/slider-menu-item.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/slider-menu-item.c b/src/slider-menu-item.c
index 64db277..a20bb00 100644
--- a/src/slider-menu-item.c
+++ b/src/slider-menu-item.c
@@ -81,12 +81,8 @@ handle_event (DbusmenuMenuitem * mi,
GVariant * value,
guint timestamp)
{
- /*g_debug ( "handle-event in the slider at the backend, input is of type %s",
- g_variant_get_type_string(value));*/
-
GVariant* input = NULL;
input = value;
- // Please note: Subject to change in future DBusmenu revisions
if (g_variant_is_of_type(value, G_VARIANT_TYPE_VARIANT) == TRUE) {
input = g_variant_get_variant(value);
}
@@ -94,6 +90,11 @@ handle_event (DbusmenuMenuitem * mi,
gboolean volume_input = g_variant_get_double(input);
if (value != NULL){
set_sink_volume(volume_input);
+ // TODO -when the ACTIVESINK instance exists this will be handled nicely
+ // PA MANAGER will be refactored first.
+ if (default_sink_is_muted () == TRUE){
+ toggle_global_mute (FALSE);
+ }
}
}