diff options
author | Conor Curran <conor.curran@canonical.com> | 2012-04-12 13:56:27 -0700 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2012-04-12 13:56:27 -0700 |
commit | 9740d6e7079ac8118d3a75d90b42ac40054449f3 (patch) | |
tree | 95c311dd2f96969e0554eae86a8e34894fc438ed /src | |
parent | 1ea2919f7b445d54dbffc7fd0b2638a5a12e228c (diff) | |
download | ayatana-indicator-sound-9740d6e7079ac8118d3a75d90b42ac40054449f3.tar.gz ayatana-indicator-sound-9740d6e7079ac8118d3a75d90b42ac40054449f3.tar.bz2 ayatana-indicator-sound-9740d6e7079ac8118d3a75d90b42ac40054449f3.zip |
use instances available and don't cast
Diffstat (limited to 'src')
-rw-r--r-- | src/volume-widget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/volume-widget.c b/src/volume-widget.c index 595e602..246963b 100644 --- a/src/volume-widget.c +++ b/src/volume-widget.c @@ -144,10 +144,10 @@ 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)); + atk_object = gtk_widget_get_accessible (slider); if (atk_object != NULL){ gchar* desc = g_strdup_printf(_("Volume (%'.0f%%)"), - volume_widget_get_current_volume (GTK_WIDGET (userdata))); + update); atk_object_set_name (atk_object, desc); } update_accessible_desc(priv->indicator); |