From 8da37ea812d5b784dade3dc0f05df54fdc60fc7a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 20 Oct 2010 15:06:38 -0400 Subject: Bug 632641 - Handle combo box text API going away --- plugins/calendar-file/calendar-file.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'plugins/calendar-file') 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 #include +/* 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); -- cgit v1.2.3