From 52a30cde6f8a89cc3c8528c496e37f84cda65518 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 3 Feb 2018 22:36:44 -0800 Subject: [PATCH] Remove useless gtk_widget_set_size_request() It won't have any effect on the best size computation, and leaving the size set to (0,0) is really bad form --- src/gtk/choice.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gtk/choice.cpp b/src/gtk/choice.cpp index c65967ab1a..c86e4eebb9 100644 --- a/src/gtk/choice.cpp +++ b/src/gtk/choice.cpp @@ -348,11 +348,6 @@ wxSize wxChoice::DoGetSizeFromTextSize(int xlen, int ylen) const // a GtkEntry for wxComboBox and a GtkCellView for wxChoice GtkWidget* childPart = gtk_bin_get_child(GTK_BIN(m_widget)); - // Set a as small as possible size for the control, so preferred sizes - // return "natural" sizes, not taking into account the previous ones (which - // seems to be GTK+3 behaviour) - gtk_widget_set_size_request(m_widget, 0, 0); - // We are interested in the difference of sizes between the whole contol // and its child part. I.e. arrow, separators, etc. GtkRequisition req;