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:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user