diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-02-04 17:31:16 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-02-04 17:31:16 +0000 |
commit | 39430b4d1797d16b2152fddb864a38c26f8fb97f (patch) | |
tree | 571aa0291b7b02559fd2ec2f18efedd0031c50ac /src/slider-menu-item.c | |
parent | 025fb0a3df226ab127ee435c341882addfafcbba (diff) | |
download | ayatana-indicator-sound-39430b4d1797d16b2152fddb864a38c26f8fb97f.tar.gz ayatana-indicator-sound-39430b4d1797d16b2152fddb864a38c26f8fb97f.tar.bz2 ayatana-indicator-sound-39430b4d1797d16b2152fddb864a38c26f8fb97f.zip |
putting in back together
Diffstat (limited to 'src/slider-menu-item.c')
-rw-r--r-- | src/slider-menu-item.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/slider-menu-item.c b/src/slider-menu-item.c index a20bb00..3554b0d 100644 --- a/src/slider-menu-item.c +++ b/src/slider-menu-item.c @@ -60,6 +60,14 @@ static void slider_menu_item_class_init (SliderMenuItemClass *klass) static void slider_menu_item_init (SliderMenuItem *self) { g_debug("Building new Slider Menu Item"); + dbusmenu_menuitem_property_set( DBUSMENU_MENUITEM(self), + DBUSMENU_MENUITEM_PROP_TYPE, + DBUSMENU_VOLUME_MENUITEM_TYPE ); + + /*dbusmenu_menuitem_property_set_bool( DBUSMENU_MENUITEM(self), + DBUSMENU_MENUITEM_PROP_VISIBLE, + TRUE);*/ + return; } @@ -89,12 +97,13 @@ 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 + // TODO - when the ACTIVESINK instance exists this will be handled nicely // PA MANAGER will be refactored first. - if (default_sink_is_muted () == TRUE){ + + //set_sink_volume(volume_input); + /*if (default_sink_is_muted () == TRUE){ toggle_global_mute (FALSE); - } + }*/ } } @@ -121,9 +130,6 @@ SliderMenuItem* slider_menu_item_new (gboolean sinks_available, gdouble start_volume) { SliderMenuItem *self = g_object_new(SLIDER_MENU_ITEM_TYPE, NULL); - dbusmenu_menuitem_property_set( DBUSMENU_MENUITEM(self), - DBUSMENU_MENUITEM_PROP_TYPE, - DBUSMENU_VOLUME_MENUITEM_TYPE ); slider_menu_item_update (self, start_volume); slider_menu_item_enable (self, sinks_available); |