[gtk+/gtk-3-22] ComboBox: rm pointless ScrolledWindow.set_policy()



commit 628ff776d1f598bc24b4d847d10aa673b9c27d10
Author: Daniel Boles <dboles src gnome org>
Date:   Wed Oct 4 20:33:55 2017 +0100

    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 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 0881324..1f79e6f 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]