diff options
author | Nick Dedekind <nick.dedekind@canonical.com> | 2014-10-07 02:51:29 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-10-07 02:51:29 +0000 |
commit | fef2b108639b3a8da48002a7462eb7745c8277f2 (patch) | |
tree | 47b7012dccb18a6413ccfaa23208dc8d2a8b6380 | |
parent | 8ade0c779df1b502923cb1d5364c1ae5bbff425a (diff) | |
parent | 7206e28a11ca16763edde8739fd85ee99939250e (diff) | |
download | ayatana-indicator-sound-fef2b108639b3a8da48002a7462eb7745c8277f2.tar.gz ayatana-indicator-sound-fef2b108639b3a8da48002a7462eb7745c8277f2.tar.bz2 ayatana-indicator-sound-fef2b108639b3a8da48002a7462eb7745c8277f2.zip |
Use label for Volume sliders.
Approved by: Charles Kerr, PS Jenkins bot
-rw-r--r-- | src/sound-menu.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala index e37c4e9..03faa89 100644 --- a/src/sound-menu.vala +++ b/src/sound-menu.vala @@ -35,7 +35,7 @@ public class SoundMenu: Object this.volume_section = new Menu (); if ((flags & DisplayFlags.SHOW_MUTE) != 0) volume_section.append (_("Mute"), "indicator.mute"); - volume_section.append_item (this.create_slider_menu_item ("indicator.volume(0)", 0.0, 1.0, 0.01, + volume_section.append_item (this.create_slider_menu_item (_("Volume"), "indicator.volume(0)", 0.0, 1.0, 0.01, "audio-volume-low-zero-panel", "audio-volume-high-panel")); @@ -75,7 +75,7 @@ public class SoundMenu: Object } set { if (value && !this.mic_volume_shown) { - var slider = this.create_slider_menu_item ("indicator.mic-volume", 0.0, 1.0, 0.01, + var slider = this.create_slider_menu_item (_("Microphone Volume"), "indicator.mic-volume", 0.0, 1.0, 0.01, "audio-input-microphone-low-zero-panel", "audio-input-microphone-high-panel"); volume_section.append_item (slider); @@ -227,11 +227,11 @@ public class SoundMenu: Object player_section.append_submenu (_("Choose Playlist"), submenu); } - MenuItem create_slider_menu_item (string action, double min, double max, double step, string min_icon_name, string max_icon_name) { + MenuItem create_slider_menu_item (string label, string action, double min, double max, double step, string min_icon_name, string max_icon_name) { var min_icon = new ThemedIcon.with_default_fallbacks (min_icon_name); var max_icon = new ThemedIcon.with_default_fallbacks (max_icon_name); - var slider = new MenuItem (null, action); + var slider = new MenuItem (label, action); slider.set_attribute ("x-canonical-type", "s", "com.canonical.unity.slider"); slider.set_attribute_value ("min-icon", min_icon.serialize ()); slider.set_attribute_value ("max-icon", max_icon.serialize ()); |