Fix sizing of generic windows in wxToolBar with GTK+3.

Broken by ee0b07fc31. See #18269
This commit is contained in:
Paul Cornett
2018-11-16 23:20:33 -08:00
parent 1ba0f055e2
commit 0bcd7f9b51

View File

@@ -218,8 +218,6 @@ static void pizza_adjust_size_request(GtkWidget* widget, GtkOrientation orientat
// will use the size request, if set, as the minimum. // will use the size request, if set, as the minimum.
// But don't override if in a GtkToolbar, it uses the minimum as actual size. // But don't override if in a GtkToolbar, it uses the minimum as actual size.
GtkWidget* parent = gtk_widget_get_parent(widget); GtkWidget* parent = gtk_widget_get_parent(widget);
if (parent)
parent = gtk_widget_get_parent(parent);
if (!GTK_IS_TOOL_ITEM(parent)) if (!GTK_IS_TOOL_ITEM(parent))
*minimum = 0; *minimum = 0;
} }