[gtk+] Fix some GtkComboBoxText problems
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix some GtkComboBoxText problems
- Date: Sat, 16 Oct 2010 12:18:41 +0000 (UTC)
commit 17cd0db6a81a782ed6c069d73efa5692c84b582e
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 16 08:17:34 2010 -0400
Fix some GtkComboBoxText problems
We must use entry-text-column explicitly to 0, since it defaults to -1.
gtk/gtkcomboboxtext.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcomboboxtext.c b/gtk/gtkcomboboxtext.c
index 578b4df..cd4a0b0 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]