aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-option.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-04-28 22:31:45 +0800
committerMilan Crha <mcrha@redhat.com>2009-04-28 22:31:45 +0800
commitc868ace2e93942aef027085353bff2bd736584b3 (patch)
treede455a7549081e069755380f4007ec2f80133714 /filter/filter-option.c
parenta08f6f0876fce40131c3915309591d775372f10c (diff)
downloadgsoc2013-evolution-c868ace2e93942aef027085353bff2bd736584b3.tar
gsoc2013-evolution-c868ace2e93942aef027085353bff2bd736584b3.tar.gz
gsoc2013-evolution-c868ace2e93942aef027085353bff2bd736584b3.tar.bz2
gsoc2013-evolution-c868ace2e93942aef027085353bff2bd736584b3.tar.lz
gsoc2013-evolution-c868ace2e93942aef027085353bff2bd736584b3.tar.xz
gsoc2013-evolution-c868ace2e93942aef027085353bff2bd736584b3.tar.zst
gsoc2013-evolution-c868ace2e93942aef027085353bff2bd736584b3.zip
Fix filter breakage after deprecated Gtk+ symbols removal
** Fix for bug #572348 * filter/filter-option.c: (combobox_changed), (get_widget): * mail/em-filter-rule.c: (part_combobox_changed): * mail/em-filter-source-element.c: (source_changed): Fix breakage of filter options.
Diffstat (limited to 'filter/filter-option.c')
-rw-r--r--filter/filter-option.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/filter/filter-option.c b/filter/filter-option.c
index 3b93084d67..7c5bbe901c 100644
--- a/filter/filter-option.c
+++ b/filter/filter-option.c
@@ -346,7 +346,7 @@ combobox_changed (GtkWidget *widget, FilterElement *fe)
{
FilterOption *fo = (FilterOption *)fe;
- fo->current = (struct _filter_option *) g_list_nth (fo->options, gtk_combo_box_get_active (GTK_COMBO_BOX (widget)));
+ fo->current = (struct _filter_option *) g_list_nth_data (fo->options, gtk_combo_box_get_active (GTK_COMBO_BOX (widget)));
}
static GSList *
@@ -439,6 +439,9 @@ get_widget (FilterElement *fe)
op = l->data;
gtk_combo_box_append_text (GTK_COMBO_BOX (combobox), _(op->title));
+ if (op == fo->current)
+ current = index;
+
l = g_list_next (l);
index++;
}