[gtkhtml] Bug 632596 - Don't use GtkComboBoxEntry
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkhtml] Bug 632596 - Don't use GtkComboBoxEntry
- Date: Wed, 20 Oct 2010 14:25:59 +0000 (UTC)
commit 9cdef951c59ebbd4503697eb796ec65122b5cc99
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 20 10:23:29 2010 -0400
Bug 632596 - Don't use GtkComboBoxEntry
gtkhtml/htmlselect.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtkhtml/htmlselect.c b/gtkhtml/htmlselect.c
index 0f3eeea..c3ac569 100644
--- a/gtkhtml/htmlselect.c
+++ b/gtkhtml/htmlselect.c
@@ -242,7 +242,16 @@ html_select_init (HTMLSelect *select,
select->view, 120, req.height * size);
gtk_list_store_remove (store, &iter);
} else {
+#if GTK_CHECK_VERSION(2,23,0)
+ widget = g_object_new (
+ GTK_TYPE_COMBO_BOX,
+ "model", select->model,
+ "has-entry", TRUE,
+ "entry-text-column", 0,
+ NULL);
+#else
widget = gtk_combo_box_entry_new_with_model (select->model, 0);
+#endif
gtk_widget_set_size_request (widget, 120, -1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]