diff options
author | Not Zed <NotZed@Ximian.com> | 2005-08-05 14:53:35 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2005-08-05 14:53:35 +0800 |
commit | 44f24cdf5a76bd8b6288cfa94e275453565c92f0 (patch) | |
tree | abaf2b65a5b012f3160befcb82bc5d8241430d4f /mail/em-filter-editor.c | |
parent | 6d0d9bb37a0a1575f4e537a52f0f53fd06638103 (diff) | |
download | gsoc2013-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-filter-editor.c')
-rw-r--r-- | mail/em-filter-editor.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/em-filter-editor.c b/mail/em-filter-editor.c index f736cc72f6..32f7ff1a48 100644 --- a/mail/em-filter-editor.c +++ b/mail/em-filter-editor.c @@ -101,7 +101,7 @@ em_filter_editor_finalise (GObject *obj) * Return value: A new #EMFilterEditor object. **/ EMFilterEditor * -em_filter_editor_new (EMFilterContext *fc, const char **source_names) +em_filter_editor_new (EMFilterContext *fc, const EMFilterSource *source_names) { EMFilterEditor *fe = (EMFilterEditor *) g_object_new (em_filter_editor_get_type(), NULL); GladeXML *gui; @@ -125,7 +125,7 @@ select_source (GtkMenuItem *mi, EMFilterEditor *fe) } void -em_filter_editor_construct (EMFilterEditor *fe, EMFilterContext *fc, GladeXML *gui, const char **source_names) +em_filter_editor_construct (EMFilterEditor *fe, EMFilterContext *fc, GladeXML *gui, const EMFilterSource *source_names) { GtkWidget *menu, *item, *omenu; int i; @@ -134,9 +134,9 @@ em_filter_editor_construct (EMFilterEditor *fe, EMFilterContext *fc, GladeXML *g gtk_option_menu_remove_menu (GTK_OPTION_MENU (omenu)); menu = gtk_menu_new (); - for (i = 0; source_names[i]; i++) { - item = gtk_menu_item_new_with_label (_(source_names[i])); - g_object_set_data_full (G_OBJECT (item), "source", g_strdup (source_names[i]), g_free); + for (i = 0; source_names[i].source; i++) { + item = gtk_menu_item_new_with_label(source_names[i].name); + g_object_set_data_full((GObject *)item, "source", g_strdup(source_names[i].source), g_free); gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); gtk_widget_show (item); g_signal_connect (item, "activate", G_CALLBACK (select_source), fe); @@ -144,7 +144,7 @@ em_filter_editor_construct (EMFilterEditor *fe, EMFilterContext *fc, GladeXML *g gtk_option_menu_set_menu (GTK_OPTION_MENU (omenu), menu); gtk_widget_show (omenu); - rule_editor_construct ((RuleEditor *) fe, (RuleContext *) fc, gui, source_names[0], _("_Filter Rules")); + rule_editor_construct ((RuleEditor *) fe, (RuleContext *) fc, gui, source_names[0].source, _("_Filter Rules")); } static FilterRule * |