summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-10-16 08:17:34 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-10-16 08:17:34 -0400
commit17cd0db6a81a782ed6c069d73efa5692c84b582e (patch)
tree96bdcf68d2e0be49e83dff7f5213b14e1e7186e7
parenta62e1b95bc2d210ac8f49ed9e1519d98b6f97fd2 (diff)
downloadgtk+-17cd0db6a81a782ed6c069d73efa5692c84b582e.tar.gz
Fix some GtkComboBoxText problems
We must use entry-text-column explicitly to 0, since it defaults to -1.
-rw-r--r--gtk/gtkcomboboxtext.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkcomboboxtext.c b/gtk/gtkcomboboxtext.c
index 578b4dfdd6..cd4a0b0725 100644
--- a/gtk/gtkcomboboxtext.c
+++ b/gtk/gtkcomboboxtext.c
@@ -78,7 +78,9 @@ gtk_combo_box_text_init (GtkComboBoxText *combo_box)
GtkWidget *
gtk_combo_box_text_new (void)
{
- return g_object_new (GTK_TYPE_COMBO_BOX_TEXT, NULL);
+ return g_object_new (GTK_TYPE_COMBO_BOX_TEXT,
+ "entry-text-column", 0,
+ NULL);
}