aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-21 04:10:15 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-21 04:10:15 +0800
commit4a08257b83512cc32b73d732ccc53266a22b917c (patch)
treef4bd68280af53cc696626055fb792795bc7628cc /widgets/misc
parent8da37ea812d5b784dade3dc0f05df54fdc60fc7a (diff)
downloadgsoc2013-evolution-4a08257b83512cc32b73d732ccc53266a22b917c.tar.gz
gsoc2013-evolution-4a08257b83512cc32b73d732ccc53266a22b917c.tar.zst
gsoc2013-evolution-4a08257b83512cc32b73d732ccc53266a22b917c.zip
Deal with GtkComboBoxEntry removal in gtk+-3.0.
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-dateedit.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c
index 01b70e4afc..da3c9dbad5 100644
--- a/widgets/misc/e-dateedit.c
+++ b/widgets/misc/e-dateedit.c
@@ -571,8 +571,17 @@ create_children (EDateEdit *dedit)
"widget \"*.e-dateedit-timecombo\" style \"e-dateedit-timecombo-style\"");
time_store = gtk_list_store_new (1, G_TYPE_STRING);
+#if GTK_CHECK_VERSION(2,23,0)
+ priv->time_combo = g_object_new (
+ GTK_TYPE_COMBO_BOX,
+ "model", time_store,
+ "has-entry", TRUE,
+ "entry-text-column", 0,
+ NULL);
+#else
priv->time_combo = gtk_combo_box_entry_new_with_model (
GTK_TREE_MODEL (time_store), 0);
+#endif
g_object_unref (time_store);
child = gtk_bin_get_child (GTK_BIN (priv->time_combo));