diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2011-11-17 03:08:15 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2011-11-17 03:08:15 +0100 |
commit | 15b78696682283776aac8cb93a6477fec3ef330c (patch) | |
tree | b88dda2fd8ce840494eff8d839a8e4373c24ebb5 | |
parent | 3c02b69b2d0801d8a72c6016a41192b601ce4f2f (diff) | |
download | ayatana-indicator-sound-15b78696682283776aac8cb93a6477fec3ef330c.tar.gz ayatana-indicator-sound-15b78696682283776aac8cb93a6477fec3ef330c.tar.bz2 ayatana-indicator-sound-15b78696682283776aac8cb93a6477fec3ef330c.zip |
Don't show the notify-osd notification on scroll, when the menu is mapped
Future versions of unity-panel-service should support scroll events
when the indicators menus are mapped, this would lead to an inconsistency
in indicator-sound. In fact both the slider and the notify osd would be
shown. This commit fixes this potential issue, disabling notify-osd
notifications when the indicator-sound menu is mapped.
-rw-r--r-- | src/indicator-sound.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c index 7c72900..0c4f740 100644 --- a/src/indicator-sound.c +++ b/src/indicator-sound.c @@ -718,7 +718,8 @@ indicator_sound_scroll (IndicatorObject * io, IndicatorObjectEntry * entry, //g_debug("indicator-sound-scroll - update slider with value %f", value); volume_widget_update(VOLUME_WIDGET(priv->volume_widget), value, "scroll updates"); - sound_state_manager_show_notification (priv->state_manager, value); + if (!gtk_widget_get_mapped(GTK_WIDGET (entry->menu))) + sound_state_manager_show_notification (priv->state_manager, value); } static void |