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:

committed by
Sven Neumann

parent
7c745575d6
commit
cba937480e
@ -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>
|
2008-01-10 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* plug-ins/pygimp/plug-ins/gimpcons.py: fixed spelling of GIMP.
|
* plug-ins/pygimp/plug-ins/gimpcons.py: fixed spelling of GIMP.
|
||||||
|
@ -588,6 +588,9 @@ gimp_ui_manager_ui_popup (GimpUIManager *manager,
|
|||||||
if (GTK_IS_MENU_ITEM (widget))
|
if (GTK_IS_MENU_ITEM (widget))
|
||||||
widget = gtk_menu_item_get_submenu (GTK_MENU_ITEM (widget));
|
widget = gtk_menu_item_get_submenu (GTK_MENU_ITEM (widget));
|
||||||
|
|
||||||
|
if (! widget)
|
||||||
|
return;
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_MENU (widget));
|
g_return_if_fail (GTK_IS_MENU (widget));
|
||||||
|
|
||||||
if (! position_func)
|
if (! position_func)
|
||||||
|
Reference in New Issue
Block a user