]> Pileus Git - ~andy/gtk/commit
menu: Deactivate the menu if the GdkWindow is withdrawn
authorRob Bradford <rob@linux.intel.com>
Mon, 27 Feb 2012 12:35:25 +0000 (12:35 +0000)
committerRob Bradford <rob@linux.intel.com>
Wed, 29 Feb 2012 12:18:30 +0000 (12:18 +0000)
commit7cc3eb04ec5c77f01f25f21ef88723e00a96620e
tree66234416f44105a3dd77be9b0b0697e299a44937
parent5badf835e9390706042693eb0bf0f6bc31f7d20a
menu: Deactivate the menu if the GdkWindow is withdrawn

If the display server or GDK hides the window - fire the "deactivate" signal
to ensure that the internal state is consistent.

This patch also ensures that the "deactivate" signal will not be fired for a
menu that is not active.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=670881
gtk/gtkmenu.c
gtk/gtkmenushell.c