Commit 808ddd31 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

try the find_widget_under_pointer() hack only if the menu item's parent is

2008-08-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpuimanager.c (gimp_ui_manager_item_key_press):
	try the find_widget_under_pointer() hack only if the menu item's
	parent is really a GtkMenu (not a GtkMenuBar). Fixes crash spotted
	by rubikcube.


svn path=/trunk/; revision=26796
parent 4e26c54f
2008-08-27 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpuimanager.c (gimp_ui_manager_item_key_press):
try the find_widget_under_pointer() hack only if the menu item's
parent is really a GtkMenu (not a GtkMenuBar). Fixes crash spotted
by rubikcube.
2008-08-27 Lars-Peter Clausen <lars@metafoo.de>
* plug-ins/pygimp/pygimp-tile.c
......
......@@ -944,7 +944,7 @@ gimp_ui_manager_item_key_press (GtkWidget *widget,
{
GtkWidget *menu_item = GTK_MENU_SHELL (widget)->active_menu_item;
if (! menu_item)
if (! menu_item && GTK_IS_MENU (widget))
{
GdkWindow *window = GTK_MENU (widget)->toplevel->window;
gint x, y;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment