aboutsummaryrefslogtreecommitdiff
path: root/src/sound-menu.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-11-10 16:21:34 -0600
committerTed Gould <ted@gould.cx>2014-11-10 16:21:34 -0600
commita9cc2312c545cb50d2af024b99a46f9577dc743e (patch)
treecbfd48ed9cfc85c23b125b61000ad9e79facc991 /src/sound-menu.vala
parent3f5128c28eb0aca0be9fef30e647d4ebf7666dbb (diff)
parent2f0aba374502b7ea660fce49f70e3ea972725685 (diff)
downloadayatana-indicator-sound-a9cc2312c545cb50d2af024b99a46f9577dc743e.tar.gz
ayatana-indicator-sound-a9cc2312c545cb50d2af024b99a46f9577dc743e.tar.bz2
ayatana-indicator-sound-a9cc2312c545cb50d2af024b99a46f9577dc743e.zip
Merge trunk
Diffstat (limited to 'src/sound-menu.vala')
-rw-r--r--src/sound-menu.vala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala
index a9efd74..3881faf 100644
--- a/src/sound-menu.vala
+++ b/src/sound-menu.vala
@@ -118,7 +118,6 @@ public class SoundMenu: Object
while ((location = find_action(this.volume_section, "indicator.high-volume-warning-item")) != -1) {
this.volume_section.remove (location);
}
- this.volume_section.remove (this.volume_section.get_n_items () -1);
this.high_volume_warning_shown = false;
}
}
@@ -128,7 +127,7 @@ public class SoundMenu: Object
int n = menu.get_n_items ();
for (int i = 0; i < n; i++) {
string action;
- menu.get_item_attribute (0, "action", "s", out action);
+ menu.get_item_attribute (i, "action", "s", out action);
if (in_action == action)
return i;
}