aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-08-05 14:53:35 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-08-05 14:53:35 +0800
commit44f24cdf5a76bd8b6288cfa94e275453565c92f0 (patch)
treeabaf2b65a5b012f3160befcb82bc5d8241430d4f /mail/em-utils.c
parent6d0d9bb37a0a1575f4e537a52f0f53fd06638103 (diff)
downloadgsoc2013-evolution-44f24cdf5a76bd8b6288cfa94e275453565c92f0.tar
gsoc2013-evolution-44f24cdf5a76bd8b6288cfa94e275453565c92f0.tar.gz
gsoc2013-evolution-44f24cdf5a76bd8b6288cfa94e275453565c92f0.tar.bz2
gsoc2013-evolution-44f24cdf5a76bd8b6288cfa94e275453565c92f0.tar.lz
gsoc2013-evolution-44f24cdf5a76bd8b6288cfa94e275453565c92f0.tar.xz
gsoc2013-evolution-44f24cdf5a76bd8b6288cfa94e275453565c92f0.tar.zst
gsoc2013-evolution-44f24cdf5a76bd8b6288cfa94e275453565c92f0.zip
** See bug #273885.
2005-08-04 Not Zed <NotZed@Ximian.com> ** See bug #273885. * em-utils.c (em_utils_edit_filters): setup filter source names properly translated. * em-filter-editor.c (em_filter_editor_construct): take an array of structs for the filter source so the incoming/outgoing is properly translated. ** See bug #312397. * em-format-quote.c (emfq_format_message): dont quote credits here. (emfq_format_message_prefix): new prefix handler for credits. (emfq_format_clone): invoke the message prefix before anything else. ** See bug #310840. * em-icon-stream.c (em_icon_stream_get_image): check for /0 possibility. ** See bug #308512. * em-account-editor.c (emae_authtype_changed): take into account the writability of the password when sensitising remember password. (get_password): small hack to disable the save-password button when appropriate. svn path=/trunk/; revision=29997
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c15
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);