From be80e257f60d48a8892abdd70d405f67aea45636 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Thu, 1 Dec 2011 17:19:30 +0000 Subject: fixes lp #886339 --- src/indicator-sound.c | 6 ++++-- src/volume-widget.c | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/indicator-sound.c b/src/indicator-sound.c index f45d926..b953449 100644 --- a/src/indicator-sound.c +++ b/src/indicator-sound.c @@ -419,6 +419,9 @@ new_volume_slider_widget(DbusmenuMenuitem * newitem, } volume_widget = volume_widget_new (newitem, io); priv->volume_widget = volume_widget; + // Don't forget to set the accessible desc. + update_accessible_desc (io); + GtkWidget* ido_slider_widget = volume_widget_get_ido_slider(VOLUME_WIDGET(priv->volume_widget)); @@ -759,8 +762,7 @@ update_accessible_desc (IndicatorObject * io) } entry->accessible_desc = priv->accessible_desc; - g_free (old_desc); - + g_free (old_desc); g_signal_emit(G_OBJECT(io), INDICATOR_OBJECT_SIGNAL_ACCESSIBLE_DESC_UPDATE_ID, 0, diff --git a/src/volume-widget.c b/src/volume-widget.c index e8e7bae..f2bf6ed 100644 --- a/src/volume-widget.c +++ b/src/volume-widget.c @@ -195,7 +195,6 @@ volume_widget_set_twin_item(VolumeWidget* self, initial_level = 0; } gtk_range_set_value(range, initial_level); - update_accessible_desc(priv->indicator); } static gboolean -- cgit v1.2.3