[gtk+] combobox: Make wrap-width and grid mode work again
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] combobox: Make wrap-width and grid mode work again
- Date: Thu, 19 Jan 2017 22:11:48 +0000 (UTC)
commit c790724469942adc1dfb906dbdc68ee28ccb3b33
Author: Daniel Boles <dboles src gnome org>
Date: Thu Jan 19 21:23:51 2017 +0000
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.
gtk/gtkcombobox.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 3fb8222..4ca31f4 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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]