aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2012-04-12 13:46:10 -0700
committerConor Curran <conor.curran@canonical.com>2012-04-12 13:46:10 -0700
commit1ea2919f7b445d54dbffc7fd0b2638a5a12e228c (patch)
treed2cd0706630c24ebe0d84045c3165717cbf896f0 /src
parent51bfc395f9c37fae542d31dcf3382b80315e5cda (diff)
downloadayatana-indicator-sound-1ea2919f7b445d54dbffc7fd0b2638a5a12e228c.tar.gz
ayatana-indicator-sound-1ea2919f7b445d54dbffc7fd0b2638a5a12e228c.tar.bz2
ayatana-indicator-sound-1ea2919f7b445d54dbffc7fd0b2638a5a12e228c.zip
ensure to set the name of the gtk range for atk
Diffstat (limited to 'src')
-rw-r--r--src/volume-widget.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/volume-widget.c b/src/volume-widget.c
index ac603c1..595e602 100644
--- a/src/volume-widget.c
+++ b/src/volume-widget.c
@@ -143,6 +143,13 @@ volume_widget_property_update( DbusmenuMenuitem* item, gchar* property,
/*
g_debug ("volume-widget::volume_widget_property_update - volume - value %f", update);
*/
+ AtkObject* atk_object;
+ atk_object = gtk_widget_get_accessible(GTK_WIDGET(range));
+ if (atk_object != NULL){
+ gchar* desc = g_strdup_printf(_("Volume (%'.0f%%)"),
+ volume_widget_get_current_volume (GTK_WIDGET (userdata)));
+ atk_object_set_name (atk_object, desc);
+ }
update_accessible_desc(priv->indicator);
}
}