aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-28 13:27:34 -0500
committerTed Gould <ted@gould.cx>2011-09-28 13:27:34 -0500
commit301e45c15d553b9eb7f0a66ddb7885b0b36784ab (patch)
tree2a1f7e1fcff8944a797695207614467e3fe8ac2f
parent2240d3f7d355cbcf4f27c2facea4e704b91d7ddc (diff)
parentfb1369ee834e352a5150cfd8bd01d9bf4b2fa35b (diff)
downloadayatana-indicator-sound-301e45c15d553b9eb7f0a66ddb7885b0b36784ab.tar.gz
ayatana-indicator-sound-301e45c15d553b9eb7f0a66ddb7885b0b36784ab.tar.bz2
ayatana-indicator-sound-301e45c15d553b9eb7f0a66ddb7885b0b36784ab.zip
Only unmute if vol > 0
-rw-r--r--src/slider-menu-item.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slider-menu-item.c b/src/slider-menu-item.c
index 8186fa3..165c3d5 100644
--- a/src/slider-menu-item.c
+++ b/src/slider-menu-item.c
@@ -113,7 +113,8 @@ handle_event (DbusmenuMenuitem * mi,
*/
slider_menu_item_update_volume (SLIDER_MENU_ITEM (mi), volume_input);
- device_ensure_sink_is_unmuted (priv->a_sink);
+ if (volume_input > 0)
+ device_ensure_sink_is_unmuted (priv->a_sink);
}