aboutsummaryrefslogtreecommitdiff
path: root/src/volume-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2012-04-23 12:23:37 -0700
committerConor Curran <conor.curran@canonical.com>2012-04-23 12:23:37 -0700
commit2c3d9c4cbfb106b34716eda98e3beb2878756ae4 (patch)
treeb7878b36f38163913f5d2b5ac12108810d8d1e10 /src/volume-widget.c
parenta41f4d3cacb59fbef9544a736fc43f0340ff4a33 (diff)
downloadayatana-indicator-sound-2c3d9c4cbfb106b34716eda98e3beb2878756ae4.tar.gz
ayatana-indicator-sound-2c3d9c4cbfb106b34716eda98e3beb2878756ae4.tar.bz2
ayatana-indicator-sound-2c3d9c4cbfb106b34716eda98e3beb2878756ae4.zip
make sure on start up it's set
Diffstat (limited to 'src/volume-widget.c')
-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 d9f8cd4..02d0330 100644
--- a/src/volume-widget.c
+++ b/src/volume-widget.c
@@ -208,6 +208,13 @@ volume_widget_set_twin_item(VolumeWidget* self,
initial_level = 0;
}
gtk_range_set_value(range, initial_level);
+ gchar* desc = g_strdup_printf(_("Volume (%'.0f%%)"),
+ initial_level);
+ dbusmenu_menuitem_property_set (priv->twin_item,
+ DBUSMENU_MENUITEM_PROP_ACCESSIBLE_DESC,
+ desc);
+ g_free (desc);
+
}
static gboolean