diff options
author | Ted Gould <ted@gould.cx> | 2014-10-07 20:57:56 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-07 20:57:56 -0500 |
commit | f16199d38fdcb6b0ac67db404e8618b6f5b5407f (patch) | |
tree | fb184158fac0121f380fd7043218c8e86664c4f6 /src/sound-menu.vala | |
parent | 9e1ec4502a70a6e91a9de96a96e26388b99e811b (diff) | |
parent | dbcb55e3fb48831124a3210abe36f049262bb22d (diff) | |
download | ayatana-indicator-sound-f16199d38fdcb6b0ac67db404e8618b6f5b5407f.tar.gz ayatana-indicator-sound-f16199d38fdcb6b0ac67db404e8618b6f5b5407f.tar.bz2 ayatana-indicator-sound-f16199d38fdcb6b0ac67db404e8618b6f5b5407f.zip |
Update to current trunk
Diffstat (limited to 'src/sound-menu.vala')
-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 6cbbf67..f245a1f 100644 --- a/src/sound-menu.vala +++ b/src/sound-menu.vala @@ -44,7 +44,7 @@ public class SoundMenu: Object volume_section.append_item(item); } - 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")); @@ -86,7 +86,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); @@ -243,11 +243,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 ()); |