aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/calendar-file/calendar-file.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-10-21 03:06:38 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-21 03:08:16 +0800
commit8da37ea812d5b784dade3dc0f05df54fdc60fc7a (patch)
tree04bf6d75a584f2f8af8c4b061e38bf8220a0bf15 /plugins/calendar-file/calendar-file.c
parent4142c97c7b59de8d859a217d7b76667b339e33c0 (diff)
downloadgsoc2013-evolution-8da37ea812d5b784dade3dc0f05df54fdc60fc7a.tar.gz
gsoc2013-evolution-8da37ea812d5b784dade3dc0f05df54fdc60fc7a.tar.zst
gsoc2013-evolution-8da37ea812d5b784dade3dc0f05df54fdc60fc7a.zip
Bug 632641 - Handle combo box text API going away
Diffstat (limited to 'plugins/calendar-file/calendar-file.c')
-rw-r--r--plugins/calendar-file/calendar-file.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/calendar-file/calendar-file.c b/plugins/calendar-file/calendar-file.c
index 7ab2a13259..b554843d65 100644
--- a/plugins/calendar-file/calendar-file.c
+++ b/plugins/calendar-file/calendar-file.c
@@ -27,6 +27,9 @@
#include <glib/gi18n.h>
#include <string.h>
+/* backward-compatibility cruft */
+#include "e-util/gtk-compat.h"
+
gint e_plugin_lib_enable (EPlugin *ep, gint enable);
gint
@@ -192,10 +195,10 @@ e_calendar_file_customs (EPlugin *epl, EConfigHookItemFactoryData *data)
gtk_misc_set_alignment (GTK_MISC (w1), 0.0, 0.5);
gtk_box_pack_start ((GtkBox *)box2, w1, FALSE, TRUE, 2);
- w2 = gtk_combo_box_new_text ();
- gtk_combo_box_append_text ((GtkComboBox *)w2, _("On open"));
- gtk_combo_box_append_text ((GtkComboBox *)w2, _("On file change"));
- gtk_combo_box_append_text ((GtkComboBox *)w2, _("Periodically"));
+ w2 = gtk_combo_box_text_new ();
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (w2), _("On open"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (w2), _("On file change"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (w2), _("Periodically"));
gtk_label_set_mnemonic_widget (GTK_LABEL (w1), w2);
gtk_box_pack_start ((GtkBox *)box2, w2, FALSE, TRUE, 2);