aboutsummaryrefslogtreecommitdiff
path: root/src/voip-input-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-21 13:04:13 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-21 13:04:13 +0000
commitd84e5d382f2f62e4af5d0e9f8ed993b671acc15a (patch)
treeb94727653de339ed7eae81f17b2cf9987971e012 /src/voip-input-widget.c
parent8418707f9e99f08b44e8cb7641ba50a110003784 (diff)
downloadayatana-indicator-sound-d84e5d382f2f62e4af5d0e9f8ed993b671acc15a.tar.gz
ayatana-indicator-sound-d84e5d382f2f62e4af5d0e9f8ed993b671acc15a.tar.bz2
ayatana-indicator-sound-d84e5d382f2f62e4af5d0e9f8ed993b671acc15a.zip
some extra trace around sliders to track the volume zero app start madness
Diffstat (limited to 'src/voip-input-widget.c')
-rw-r--r--src/voip-input-widget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/voip-input-widget.c b/src/voip-input-widget.c
index 6878361..dcf858e 100644
--- a/src/voip-input-widget.c
+++ b/src/voip-input-widget.c
@@ -129,9 +129,9 @@ voip_input_widget_property_update (DbusmenuMenuitem* item, gchar* property,
g_return_if_fail (IS_VOIP_INPUT_WIDGET (userdata));
VoipInputWidget* mitem = VOIP_INPUT_WIDGET(userdata);
VoipInputWidgetPrivate * priv = VOIP_INPUT_WIDGET_GET_PRIVATE(mitem);
- //g_debug("scrub-widget::property_update for prop %s", property);
if(g_ascii_strcasecmp(DBUSMENU_VOIP_INPUT_MENUITEM_LEVEL, property) == 0){
- if(priv->grabbed == FALSE){
+ g_return_if_fail (g_variant_is_of_type (value, G_VARIANT_TYPE_DOUBLE));
+ if (priv->grabbed == FALSE){
GtkWidget *slider = ido_scale_menu_item_get_scale((IdoScaleMenuItem*)priv->ido_voip_input_slider);
GtkRange *range = (GtkRange*)slider;
gdouble update = g_variant_get_double (value);