From 0bcd7f9b51db7719b8325f888fd19ec488916d1a Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 16 Nov 2018 23:20:33 -0800 Subject: [PATCH] Fix sizing of generic windows in wxToolBar with GTK+3. Broken by ee0b07fc31a. See #18269 --- src/gtk/win_gtk.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gtk/win_gtk.cpp b/src/gtk/win_gtk.cpp index 98b17fe117..9057f30ed4 100644 --- a/src/gtk/win_gtk.cpp +++ b/src/gtk/win_gtk.cpp @@ -218,8 +218,6 @@ static void pizza_adjust_size_request(GtkWidget* widget, GtkOrientation orientat // 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. GtkWidget* parent = gtk_widget_get_parent(widget); - if (parent) - parent = gtk_widget_get_parent(parent); if (!GTK_IS_TOOL_ITEM(parent)) *minimum = 0; }