From c868ace2e93942aef027085353bff2bd736584b3 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 28 Apr 2009 16:31:45 +0200 Subject: 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. --- filter/filter-option.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'filter/filter-option.c') 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++; } -- cgit