aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sound-menu.vala7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala
index 1247e0a..6cbbf67 100644
--- a/src/sound-menu.vala
+++ b/src/sound-menu.vala
@@ -38,8 +38,11 @@ public class SoundMenu: Object
if ((flags & DisplayFlags.SHOW_MUTE) != 0)
volume_section.append (_("Mute"), "indicator.mute");
- if ((flags & DisplayFlags.SHOW_SILENT_MODE) != 0)
- volume_section.append (_("Silent Mode"), "indicator.silent-mode");
+ if ((flags & DisplayFlags.SHOW_SILENT_MODE) != 0) {
+ var item = new MenuItem(_("Silent Mode"), "indicator.silent-mode");
+ item.set_attribute("x-canonical-type", "s", "com.canonical.indicator.switch");
+ volume_section.append_item(item);
+ }
volume_section.append_item (this.create_slider_menu_item ("indicator.volume(0)", 0.0, 1.0, 0.01,
"audio-volume-low-zero-panel",