]> Pileus Git - ~andy/gtk/commit
Don't close menus on clicks on their border area (bug #423761). (modified
authorMichael Natterer <mitch@imendio.com>
Thu, 29 Mar 2007 15:47:49 +0000 (15:47 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Thu, 29 Mar 2007 15:47:49 +0000 (15:47 +0000)
commitedb9f10aadbddd8a6d7ad652b02a5d9fa9227b6d
tree6ac8245aca28a68b2da572d1d2f5f60d5fc7e6b9
parentbec19a3f73aae747bee8c35da243e66e2178c9ab
Don't close menus on clicks on their border area (bug #423761). (modified

2007-03-29  Michael Natterer  <mitch@imendio.com>

Don't close menus on clicks on their border area (bug #423761).
(modified patch from maemo-gtk).

* gtk/gtkmenu.c (gtk_menu_button_press)
(gtk_menu_button_release): bail out early if the click was on the
menu's border (not on any item and not outside the window).

(pointer_in_menu_window): new utility function which checks if
passed root coords are inside the menu_shell or one of its
parent shells.

svn path=/trunk/; revision=17571
ChangeLog
gtk/gtkmenu.c