summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boles <dboles@src.gnome.org>2017-01-19 21:23:51 +0000
committerDaniel Boles <dboles@src.gnome.org>2017-01-19 22:08:45 +0000
commitc790724469942adc1dfb906dbdc68ee28ccb3b33 (patch)
tree8e64a48a9bf5dc3728d2c19c3a7f16c300754ee0
parent47bc8603b0cb1676ce5887de3aeba511a5f85ad6 (diff)
downloadgtk+-c790724469942adc1dfb906dbdc68ee28ccb3b33.tar.gz
combobox: Make wrap-width and grid mode work again
Commit fdc0c6426b6fb751653f3a8536a344f69a6407ac 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.
-rw-r--r--gtk/gtkcombobox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 3fb8222d35..4ca31f4b3f 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -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");
}