aboutsummaryrefslogtreecommitdiff
path: root/src/slider-menu-item.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-08-02 19:13:58 +0100
committerConor Curran <conor.curran@canonical.com>2010-08-02 19:13:58 +0100
commit9f7e55264deaaad68280ae33daad95fca604df8b (patch)
tree60a7fbb7bb9eee411eb0ce60a72a191376cc8108 /src/slider-menu-item.c
parent496ac14d4e3b4e5b9284083cf4ce277cfe5ef343 (diff)
downloadayatana-indicator-sound-9f7e55264deaaad68280ae33daad95fca604df8b.tar.gz
ayatana-indicator-sound-9f7e55264deaaad68280ae33daad95fca604df8b.tar.bz2
ayatana-indicator-sound-9f7e55264deaaad68280ae33daad95fca604df8b.zip
replaced now needs tweaking
Diffstat (limited to 'src/slider-menu-item.c')
-rw-r--r--src/slider-menu-item.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/slider-menu-item.c b/src/slider-menu-item.c
index d56422a..9536ff8 100644
--- a/src/slider-menu-item.c
+++ b/src/slider-menu-item.c
@@ -90,9 +90,11 @@ handle_event (DbusmenuMenuitem * mi, const gchar * name, const GValue * value, g
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_SLIDER_MENUITEM_TYPE);
- dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_ENABLED, sinks_available);
+ 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_ENABLED, sinks_available);
dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_VISIBLE, sinks_available);
return self;
}