diff options
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 364c87cf6e..2a3ce82e75 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -250,10 +250,10 @@ em_filter_editor_response (GtkWidget *dialog, int button, gpointer user_data) filter_editor = NULL; } -static const char *em_filter_source_element_names[] = { - "incoming", - "outgoing", - NULL, +static EMFilterSource em_filter_source_element_names[] = { + { "incoming", }, + { "outgoing", }, + { 0 } }; /** @@ -286,7 +286,12 @@ em_utils_edit_filters (GtkWidget *parent) e_error_run((GtkWindow *)parent, "mail:filter-load-error", ((RuleContext *)fc)->error, NULL); return; } - + + if (em_filter_source_element_names[0].name == NULL) { + em_filter_source_element_names[0].name = _("Incoming"); + em_filter_source_element_names[1].name = _("Outgoing"); + } + filter_editor = (GtkWidget *) em_filter_editor_new (fc, em_filter_source_element_names); if (parent != NULL) e_dialog_set_transient_for ((GtkWindow *) filter_editor, parent); |