aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/calendar-weather
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-weather
parent4142c97c7b59de8d859a217d7b76667b339e33c0 (diff)
downloadgsoc2013-evolution-8da37ea812d5b784dade3dc0f05df54fdc60fc7a.tar
gsoc2013-evolution-8da37ea812d5b784dade3dc0f05df54fdc60fc7a.tar.gz
gsoc2013-evolution-8da37ea812d5b784dade3dc0f05df54fdc60fc7a.tar.bz2
gsoc2013-evolution-8da37ea812d5b784dade3dc0f05df54fdc60fc7a.tar.lz
gsoc2013-evolution-8da37ea812d5b784dade3dc0f05df54fdc60fc7a.tar.xz
gsoc2013-evolution-8da37ea812d5b784dade3dc0f05df54fdc60fc7a.tar.zst
gsoc2013-evolution-8da37ea812d5b784dade3dc0f05df54fdc60fc7a.zip
Bug 632641 - Handle combo box text API going away
Diffstat (limited to 'plugins/calendar-weather')
-rw-r--r--plugins/calendar-weather/calendar-weather.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/calendar-weather/calendar-weather.c b/plugins/calendar-weather/calendar-weather.c
index 970bdf4f8b..3dda9ebd4a 100644
--- a/plugins/calendar-weather/calendar-weather.c
+++ b/plugins/calendar-weather/calendar-weather.c
@@ -37,6 +37,9 @@
#include <libgweather/gweather-xml.h>
#undef GWEATHER_I_KNOW_THIS_IS_UNSTABLE
+/* backward-compatibility cruft */
+#include "e-util/gtk-compat.h"
+
GtkWidget *e_calendar_weather_location (EPlugin *epl, EConfigHookItemFactoryData *data);
GtkWidget *e_calendar_weather_refresh (EPlugin *epl, EConfigHookItemFactoryData *data);
GtkWidget *e_calendar_weather_units (EPlugin *epl, EConfigHookItemFactoryData *data);
@@ -450,10 +453,14 @@ e_calendar_weather_units (EPlugin *epl, EConfigHookItemFactoryData *data)
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (parent), label, 0, 1, row, row+1, GTK_FILL, 0, 0, 0);
- combobox = gtk_combo_box_new_text ();
+ combobox = gtk_combo_box_text_new ();
gtk_widget_show (combobox);
- gtk_combo_box_append_text (GTK_COMBO_BOX (combobox), _("Metric (Celsius, cm, etc)"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (combobox), _("Imperial (Fahrenheit, inches, etc)"));
+ gtk_combo_box_text_append_text (
+ GTK_COMBO_BOX_TEXT (combobox),
+ _("Metric (Celsius, cm, etc)"));
+ gtk_combo_box_text_append_text (
+ GTK_COMBO_BOX_TEXT (combobox),
+ _("Imperial (Fahrenheit, inches, etc)"));
set_units (source, combobox);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), combobox);
g_signal_connect (G_OBJECT (combobox), "changed", G_CALLBACK (units_changed), t);