From 15b78696682283776aac8cb93a6477fec3ef330c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 17 Nov 2011 03:08:15 +0100 Subject: 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. --- src/indicator-sound.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3