aboutsummaryrefslogtreecommitdiff
path: root/src/slider-menu-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/slider-menu-item.c')
-rw-r--r--src/slider-menu-item.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/slider-menu-item.c b/src/slider-menu-item.c
index a1e4725..b26a90f 100644
--- a/src/slider-menu-item.c
+++ b/src/slider-menu-item.c
@@ -26,12 +26,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "pulse-manager.h"
#include "common-defs.h"
-/*enum {*/
-/* VOLUME_CHANGED,*/
-/* FINAL_SIGNAL*/
-/*};*/
-
-/*static guint slider_signals[FINAL_SIGNAL] = { 0 };*/
typedef struct _SliderMenuItemPrivate SliderMenuItemPrivate;
@@ -96,7 +90,6 @@ 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");
-
set_sink_volume((gdouble)g_value_get_double(value));
}
@@ -109,14 +102,10 @@ SliderMenuItem* slider_menu_item_new(gboolean sinks_available, gdouble start_vol
dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_TYPE, DBUSMENU_SLIDER_MENUITEM_TYPE);
//TODO: If no valid sinks are found grey out the item(s)
dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_SENSITIVE, sinks_available);
-
- GValue value = {0};
- g_value_init(&value, G_TYPE_DOUBLE);
- g_value_set_double(&value, start_volume);
- //dbusmenu_menuitem_property_set_value(DBUSMENU_MENUITEM(self), DBUSMENU_SLIDER_MENUITEM_PROP_VOLUME, &value);
+ g_debug("Sending the initial value of the slider over dbus = %f", start_volume * 100);
return self;
}
-
+