From 628ff776d1f598bc24b4d847d10aa673b9c27d10 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Wed, 4 Oct 2017 20:33:55 +0100 Subject: [PATCH] ComboBox: rm pointless ScrolledWindow.set_policy() This just set hpolicy to what it already was and then called set_policy() with the same two arguments again, which did nothing. --- gtk/gtkcombobox.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 0881324191..1f79e6f254 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -1937,13 +1937,7 @@ gtk_combo_box_list_position (GtkComboBox *combo_box, gtk_widget_get_preferred_size (priv->scrolled_window, NULL, &popup_req); if (popup_req.width > *width) - { - hpolicy = GTK_POLICY_NEVER; - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->scrolled_window), - hpolicy, vpolicy); - - *width = popup_req.width; - } + *width = popup_req.width; } *height = popup_req.height;