Fix sizing of generic windows in wxToolBar with GTK+3.
Broken by ee0b07fc31
. See #18269
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user