Check if childs actually exists before using it

Check seems to have gone lost during GtkBin sealing in commit 4427760b

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=624707
This commit is contained in:
Javier Jardón
2010-07-22 16:43:23 +02:00
parent 90db251624
commit c1a2ecc369
4 changed files with 16 additions and 8 deletions

View File

@ -973,7 +973,8 @@ gtk_menu_item_size_request (GtkWidget *widget,
requisition->height += 2 * horizontal_padding;
child = gtk_bin_get_child (bin);
if (gtk_widget_get_visible (child))
if (child != NULL && gtk_widget_get_visible (child))
{
GtkRequisition child_requisition;