forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
73155e3988
commit
628ff776d1
@ -1937,14 +1937,8 @@ gtk_combo_box_list_position (GtkComboBox *combo_box,
|
|||||||
gtk_widget_get_preferred_size (priv->scrolled_window, NULL, &popup_req);
|
gtk_widget_get_preferred_size (priv->scrolled_window, NULL, &popup_req);
|
||||||
|
|
||||||
if (popup_req.width > *width)
|
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;
|
*height = popup_req.height;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user