summaryrefslogtreecommitdiff
path: root/gtk/gtkcombobox.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r--gtk/gtkcombobox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 60f5c5bd5c..0d349037cf 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -2502,7 +2502,7 @@ gtk_combo_box_menu_fill_level (GtkComboBox *combo_box,
}
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
- if (combo_box->priv->wrap_width)
+ if (combo_box->priv->wrap_width && menu == combo_box->priv->popup_widget)
gtk_combo_box_relayout_item (combo_box, item, &iter, last);
gtk_widget_show (item);
@@ -3054,7 +3054,8 @@ gtk_combo_box_menu_row_changed (GtkTreeModel *model,
gtk_combo_box_menu_row_inserted (model, path, iter, combo_box);
}
- if (combo_box->priv->wrap_width)
+ if (combo_box->priv->wrap_width
+ && item->parent == combo_box->priv->popup_widget)
gtk_combo_box_relayout_item (combo_box, item, iter, NULL);
width = gtk_combo_box_calc_requested_width (combo_box, path);