aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2012-04-23 11:31:29 -0700
committerConor Curran <conor.curran@canonical.com>2012-04-23 11:31:29 -0700
commita41f4d3cacb59fbef9544a736fc43f0340ff4a33 (patch)
tree10e41f3d5b8584a0f80f65e0717a66edc0bc91bc
parent9740d6e7079ac8118d3a75d90b42ac40054449f3 (diff)
downloadayatana-indicator-sound-a41f4d3cacb59fbef9544a736fc43f0340ff4a33.tar.gz
ayatana-indicator-sound-a41f4d3cacb59fbef9544a736fc43f0340ff4a33.tar.bz2
ayatana-indicator-sound-a41f4d3cacb59fbef9544a736fc43f0340ff4a33.zip
set the desc prop on the menuitem, disregard the atk approach from the widget
-rw-r--r--src/volume-widget.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/volume-widget.c b/src/volume-widget.c
index 246963b..d9f8cd4 100644
--- a/src/volume-widget.c
+++ b/src/volume-widget.c
@@ -142,14 +142,19 @@ volume_widget_property_update( DbusmenuMenuitem* item, gchar* property,
gtk_range_set_value(range, update);
/*
g_debug ("volume-widget::volume_widget_property_update - volume - value %f", update);
-*/
AtkObject* atk_object;
- atk_object = gtk_widget_get_accessible (slider);
+ atk_object = gtk_widget_get_accessible (priv->ido_volume_slider);
if (atk_object != NULL){
- gchar* desc = g_strdup_printf(_("Volume (%'.0f%%)"),
- update);
atk_object_set_name (atk_object, desc);
- }
+
+ }*/
+
+ gchar* desc = g_strdup_printf(_("Volume (%'.0f%%)"),
+ update);
+ dbusmenu_menuitem_property_set (priv->twin_item,
+ DBUSMENU_MENUITEM_PROP_ACCESSIBLE_DESC,
+ desc);
+ g_free (desc);
update_accessible_desc(priv->indicator);
}
}