diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-08-28 07:15:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-08-28 07:15:52 +0200 |
commit | 5d7d423cc329209ee7a4c6e071ef094d4902e150 (patch) | |
tree | a14709a8a4c89ce3e98993072f759074ffe65981 | |
parent | 3497c8074c724b7837541ff0cb209bc8e6220575 (diff) |
gtk-module: fix handling menu popup detection
-rw-r--r-- | src/canberra-gtk-module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/canberra-gtk-module.c b/src/canberra-gtk-module.c index 08ef934..6cb16f1 100644 --- a/src/canberra-gtk-module.c +++ b/src/canberra-gtk-module.c @@ -328,7 +328,7 @@ static gboolean is_hidden(GdkDisplay *d, GdkWindow *w) { static void dispatch_sound_event(SoundEventData *d) { int ret = CA_SUCCESS; - static gboolean menu_is_popped_up = TRUE; + static gboolean menu_is_popped_up = FALSE; if (g_object_get_qdata(d->object, disable_sound_quark)) return; @@ -343,7 +343,7 @@ static void dispatch_sound_event(SoundEventData *d) { if (is_menu_hint(hint)) { - if (menu_is_popped_up) { + if (!menu_is_popped_up) { ret = ca_gtk_play_for_widget(GTK_WIDGET(d->object), 0, CA_PROP_EVENT_ID, "menu-popup", CA_PROP_EVENT_DESCRIPTION, "Menu popped up", |