aboutsummaryrefslogtreecommitdiff
path: root/src/slider-menu-item.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2010-08-26 11:27:27 +0200
committerSebastien Bacher <seb128@ubuntu.com>2010-08-26 11:27:27 +0200
commit4bad61faf27bf1e5b5c967d641d1d36b1260d8e1 (patch)
tree9cb69ca30ed4469e543b92c01eac2b6fa4af3838 /src/slider-menu-item.c
parent022c9bd2558d5881523d68d217c398e475a9da6e (diff)
parentb4d305f16bae6804dcf2acf8b9ecc4629807c150 (diff)
downloadayatana-indicator-sound-4bad61faf27bf1e5b5c967d641d1d36b1260d8e1.tar.gz
ayatana-indicator-sound-4bad61faf27bf1e5b5c967d641d1d36b1260d8e1.tar.bz2
ayatana-indicator-sound-4bad61faf27bf1e5b5c967d641d1d36b1260d8e1.zip
releasing version 0.4.0-0ubuntu1
Diffstat (limited to 'src/slider-menu-item.c')
-rw-r--r--src/slider-menu-item.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/slider-menu-item.c b/src/slider-menu-item.c
index d56422a..77c8635 100644
--- a/src/slider-menu-item.c
+++ b/src/slider-menu-item.c
@@ -79,7 +79,6 @@ slider_menu_item_finalize (GObject *object)
static void
handle_event (DbusmenuMenuitem * mi, const gchar * name, const GValue * value, guint timestamp)
{
- g_debug("in the handle event method of slider_menu_item");
gdouble volume_input = 0;
volume_input = g_value_get_double(value);
if (value != NULL)
@@ -90,9 +89,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;
}