combobox: Make wrap-width and grid mode work again

Commit fdc0c6426b for removing (partly!)
appears-as-list also deleted the code that propagated wrap-width to the
TreeMenu and thus put us into “grid mode”. This restores that code.

And as Benjamin noted, calling check_appearance() here is wrong, so bye.
This commit is contained in:
Daniel Boles 2017-01-19 21:23:51 +00:00
parent 47bc8603b0
commit c790724469

View File

@ -2775,7 +2775,8 @@ gtk_combo_box_set_wrap_width (GtkComboBox *combo_box,
{
priv->wrap_width = width;
gtk_combo_box_check_appearance (combo_box);
if (GTK_IS_TREE_MENU (priv->popup_widget))
_gtk_tree_menu_set_wrap_width (GTK_TREE_MENU (priv->popup_widget), priv->wrap_width);
g_object_notify (G_OBJECT (combo_box), "wrap-width");
}