aboutsummaryrefslogtreecommitdiffstats
path: root/filter
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
parenta08f6f0876fce40131c3915309591d775372f10c (diff)
downloadgsoc2013-evolution-c868ace2e93942aef027085353bff2bd736584b3.tar.gz
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')
-rw-r--r--filter/ChangeLog7
-rw-r--r--filter/filter-option.c5
2 files changed, 11 insertions, 1 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 656210ddce..daf8946e76 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,10 @@
+2009-04-28 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #572348
+
+ * filter-option.c: (combobox_changed), (get_widget):
+ Fix breakage of filter options.
+
2009-04-24 Milan Crha <mcrha@redhat.com>
** Fix for bug #572348
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++;
}