aboutsummaryrefslogtreecommitdiff
path: root/src/voip-input-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-02-17 18:54:58 +0000
committerConor Curran <conor.curran@canonical.com>2011-02-17 18:54:58 +0000
commit4bebcafef41b3dbc6b4f3f3e2f6382d82390335f (patch)
treeebb69bda73b2d4be8a11efbd9f0f59b3c3a24a3d /src/voip-input-widget.c
parent6ad2bc640794ad3d78c401e4e9391169446db619 (diff)
downloadayatana-indicator-sound-4bebcafef41b3dbc6b4f3f3e2f6382d82390335f.tar.gz
ayatana-indicator-sound-4bebcafef41b3dbc6b4f3f3e2f6382d82390335f.tar.bz2
ayatana-indicator-sound-4bebcafef41b3dbc6b4f3f3e2f6382d82390335f.zip
getting there
Diffstat (limited to 'src/voip-input-widget.c')
-rw-r--r--src/voip-input-widget.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/voip-input-widget.c b/src/voip-input-widget.c
index 4933d7b..5ce7601 100644
--- a/src/voip-input-widget.c
+++ b/src/voip-input-widget.c
@@ -130,7 +130,7 @@ voip_input_widget_property_update( DbusmenuMenuitem* item, gchar* property,
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_VOLUME_MENUITEM_LEVEL, property) == 0){
+ if(g_ascii_strcasecmp(DBUSMENU_VOIP_INPUT_MENUITEM_LEVEL, property) == 0){
if(priv->grabbed == FALSE){
GtkWidget *slider = ido_scale_menu_item_get_scale((IdoScaleMenuItem*)priv->ido_voip_input_slider);
GtkRange *range = (GtkRange*)slider;
@@ -142,8 +142,8 @@ voip_input_widget_property_update( DbusmenuMenuitem* item, gchar* property,
}
static void
-voip_input_widget_set_twin_item(VoipInputWidget* self,
- DbusmenuMenuitem* twin_item)
+voip_input_widget_set_twin_item (VoipInputWidget* self,
+ DbusmenuMenuitem* twin_item)
{
VoipInputWidgetPrivate * priv = VOIP_INPUT_WIDGET_GET_PRIVATE(self);
priv->twin_item = twin_item;
@@ -151,7 +151,7 @@ voip_input_widget_set_twin_item(VoipInputWidget* self,
g_signal_connect(G_OBJECT(twin_item), "property-changed",
G_CALLBACK(voip_input_widget_property_update), self);
gdouble initial_level = g_variant_get_double (dbusmenu_menuitem_property_get_variant(twin_item,
- DBUSMENU_VOLUME_MENUITEM_LEVEL));
+ DBUSMENU_VOIP_INPUT_MENUITEM_LEVEL));
//g_debug("voip_input_widget_set_twin_item initial level = %f", initial_level);
GtkWidget *slider = ido_scale_menu_item_get_scale((IdoScaleMenuItem*)priv->ido_voip_input_slider);
GtkRange *range = (GtkRange*)slider;
@@ -160,9 +160,9 @@ voip_input_widget_set_twin_item(VoipInputWidget* self,
static gboolean
voip_input_widget_change_value_cb (GtkRange *range,
- GtkScrollType scroll,
- gdouble new_value,
- gpointer user_data)
+ GtkScrollType scroll,
+ gdouble new_value,
+ gpointer user_data)
{
g_return_val_if_fail (IS_VOIP_INPUT_WIDGET (user_data), FALSE);
VoipInputWidget* mitem = VOIP_INPUT_WIDGET(user_data);
@@ -170,6 +170,7 @@ voip_input_widget_change_value_cb (GtkRange *range,
return FALSE;
}
+
/*
We only want this callback to catch mouse icon press events
which set the slider to 0 or 100. Ignore all other events.