More error checking in unix/parent.c.

This commit is contained in:
Pietro Gagliardi 2015-04-19 09:42:06 -04:00
parent 54b45a9f09
commit 8179d66ae6
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ static void uipParent_remove(GtkContainer *container, GtkWidget *widget)
gtk_widget_unparent(widget);
if (p->children != NULL)
g_ptr_array_remove(p->children, widget);
if (g_ptr_array_remove(p->children, widget) == FALSE)
complain("widget %p not found in uipParent gtk_container_remove()", widget);
}
#define gtkXPadding 12