diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-03-10 19:48:26 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-03-10 19:48:26 +0000 |
commit | f6fd2dc4c5c1fb31f9175ddded990264cf939c77 (patch) | |
tree | fb2f6884429eb982ffb9c9feb57dffdbdafb342a /src/slider-menu-item.c | |
parent | 01b69bd1d0979f27f003f06151fcda72102f2067 (diff) | |
download | ayatana-indicator-sound-f6fd2dc4c5c1fb31f9175ddded990264cf939c77.tar.gz ayatana-indicator-sound-f6fd2dc4c5c1fb31f9175ddded990264cf939c77.tar.bz2 ayatana-indicator-sound-f6fd2dc4c5c1fb31f9175ddded990264cf939c77.zip |
fixes bug around volume going to zero on client start up
Diffstat (limited to 'src/slider-menu-item.c')
-rw-r--r-- | src/slider-menu-item.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slider-menu-item.c b/src/slider-menu-item.c index b89f5ca..1c88f01 100644 --- a/src/slider-menu-item.c +++ b/src/slider-menu-item.c @@ -92,10 +92,11 @@ handle_event (DbusmenuMenuitem * mi, input = g_variant_get_variant(value); } - gboolean volume_input = g_variant_get_double(input); if (value != NULL){ if (IS_SLIDER_MENU_ITEM (mi)) { SliderMenuItemPrivate* priv = SLIDER_MENU_ITEM_GET_PRIVATE (SLIDER_MENU_ITEM (mi)); + gdouble volume_input = g_variant_get_double(input); + //g_debug ("slider menu item about to update volume %f", volume_input); active_sink_update_volume (priv->a_sink, volume_input); active_sink_ensure_sink_is_unmuted (priv->a_sink); } |