From adc0e71ea6d243e815a7fed8fdd37b69bbf352db Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 13 Jan 2011 23:22:29 -0500 Subject: Adapt to GtkComboBox class reorg. --- modules/mail/em-mailer-prefs.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/mail') diff --git a/modules/mail/em-mailer-prefs.c b/modules/mail/em-mailer-prefs.c index 8bec111b6e..870e5ec037 100644 --- a/modules/mail/em-mailer-prefs.c +++ b/modules/mail/em-mailer-prefs.c @@ -670,9 +670,12 @@ junk_plugin_changed (GtkWidget *combo, EMMailerPrefs *prefs) { gchar *def_plugin; const GList *plugins = mail_session_get_junk_plugins (prefs->session); + GtkTreeIter iter; + + g_return_if_fail (gtk_combo_box_get_active_iter (GTK_COMBO_BOX (combo), &iter)); - def_plugin = gtk_combo_box_text_get_active_text ( - GTK_COMBO_BOX_TEXT (combo)); + def_plugin = NULL; + gtk_tree_model_get (gtk_combo_box_get_model (GTK_COMBO_BOX (combo)), &iter, 0, &def_plugin, -1); gconf_client_set_string (prefs->gconf, "/apps/evolution/mail/junk/default_plugin", def_plugin, NULL); while (plugins) { @@ -705,6 +708,8 @@ junk_plugin_changed (GtkWidget *combo, EMMailerPrefs *prefs) } plugins = plugins->next; } + + g_free (def_plugin); } static void -- cgit