gracefully deal with a NULL return value from gtk_ui_manager_get_widget().

2008-01-10  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpuimanager.c (gimp_ui_manager_ui_popup):
	gracefully deal with a NULL return value from
	gtk_ui_manager_get_widget(). This happens when the XML menu
	definitions are not found.


svn path=/trunk/; revision=24594
This commit is contained in:
Sven Neumann 2008-01-10 22:17:28 +00:00 committed by Sven Neumann
parent 7c745575d6
commit cba937480e
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2008-01-10 Sven Neumann <sven@gimp.org>
* app/widgets/gimpuimanager.c (gimp_ui_manager_ui_popup):
gracefully deal with a NULL return value from
gtk_ui_manager_get_widget(). This happens when the XML menu
definitions are not found.
2008-01-10 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/plug-ins/gimpcons.py: fixed spelling of GIMP.

View File

@ -588,6 +588,9 @@ gimp_ui_manager_ui_popup (GimpUIManager *manager,
if (GTK_IS_MENU_ITEM (widget))
widget = gtk_menu_item_get_submenu (GTK_MENU_ITEM (widget));
if (! widget)
return;
g_return_if_fail (GTK_IS_MENU (widget));
if (! position_func)