aboutsummaryrefslogtreecommitdiff
path: root/src/slider-menu-item.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-21 18:06:24 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-21 18:06:24 +0000
commit6a501d5787eec8bfef3558d14a36754f7be22858 (patch)
tree6f45996edf5bc5e6368af651ba3a17dd7cb34d6c /src/slider-menu-item.c
parent6375d3eb602251a2374944817e34b9695ae50b65 (diff)
downloadayatana-indicator-sound-6a501d5787eec8bfef3558d14a36754f7be22858.tar.gz
ayatana-indicator-sound-6a501d5787eec8bfef3558d14a36754f7be22858.tar.bz2
ayatana-indicator-sound-6a501d5787eec8bfef3558d14a36754f7be22858.zip
change the mute type on the volume slider to the appropriate type of boolean
Diffstat (limited to 'src/slider-menu-item.c')
-rw-r--r--src/slider-menu-item.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slider-menu-item.c b/src/slider-menu-item.c
index d7d08fb..1a57032 100644
--- a/src/slider-menu-item.c
+++ b/src/slider-menu-item.c
@@ -135,7 +135,7 @@ slider_menu_item_populate (SliderMenuItem* self, const pa_sink_info* update)
dbusmenu_menuitem_property_set_variant (DBUSMENU_MENUITEM(self),
DBUSMENU_VOLUME_MENUITEM_LEVEL,
new_volume);
- GVariant* new_mute_update = g_variant_new_int32 (update->mute);
+ GVariant* new_mute_update = g_variant_new_boolean (update->mute == 1);
dbusmenu_menuitem_property_set_variant (DBUSMENU_MENUITEM(self),
DBUSMENU_VOLUME_MENUITEM_MUTE,
new_mute_update);
@@ -188,7 +188,7 @@ slider_menu_item_update (SliderMenuItem* self, const pa_sink_info* update)
/*
g_debug ("volume menu item - update - mute on ui = %i", update->mute);
*/
- GVariant* new_mute_update = g_variant_new_int32 (update->mute);
+ GVariant* new_mute_update = g_variant_new_boolean (update->mute == 1);
dbusmenu_menuitem_property_set_variant (DBUSMENU_MENUITEM(self),
DBUSMENU_VOLUME_MENUITEM_MUTE,
new_mute_update);