diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-02-11 03:50:55 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-02-11 03:50:55 +0800 |
commit | 0701addc195c6315474346c9bd062dc7dc84f80c (patch) | |
tree | 3306df04d1b6995eee80aa8fbabe617507dcb145 /mail/mail-format.c | |
parent | 33841eb730d8a62aee6793dd54e624281bf58142 (diff) | |
download | gsoc2013-evolution-0701addc195c6315474346c9bd062dc7dc84f80c.tar.gz gsoc2013-evolution-0701addc195c6315474346c9bd062dc7dc84f80c.tar.zst gsoc2013-evolution-0701addc195c6315474346c9bd062dc7dc84f80c.zip |
Use g_signal_emit() rather than gtk_signal_emit(). (build_flat): Same
2003-02-10 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (build_tree): Use g_signal_emit() rather than
gtk_signal_emit().
(build_flat): Same here.
* mail-signature-editor.c: #include <string.h>
* mail-vfolder.c: #include <string.h>
* mail-session.c: #include <string.h>
* mail-search.c: #include <string.h>
* mail-mt.c: #include <string.h>
* mail-ops.c (save_part_save): Use strcasecmp() instead of
g_strcasecmp().
* mail-local.c: #include <string.h>
(reconfigure_folder_reconfigured): Use a GtkDialog instead of
gnome_error_dialog().
* mail-format.c (find_preferred_alternative): Use g_ascii_strdown
since g_strdown is deprecated.
(fake_mime_part_from_data): Removed, no longer used it seems.
(destroy_part): Also removed.
* mail-display.c (make_popup_window): Replace call to
gtk_window_set_polociy() with gtk_window_set_resizable() instead.
(popup_size_allocate_cb): Use gtk_window_set_position() with
GTK_WIN_POS_MOUSE instead of calculating the position to put it
in.
svn path=/trunk/; revision=19878
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r-- | mail/mail-format.c | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c index 3868cf23e8..02c9fc6df5 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -1243,39 +1243,6 @@ handle_text_plain (CamelMimePart *part, const char *mime_type, return TRUE; } -static CamelMimePart * -fake_mime_part_from_data (const char *data, int len, const char *type, - guint offset, MailDisplay *md) -{ - GHashTable *fake_parts = g_datalist_get_data (md->data, "fake_parts"); - CamelStream *memstream; - CamelDataWrapper *wrapper; - CamelMimePart *part; - - part = g_hash_table_lookup (fake_parts, GUINT_TO_POINTER (offset)); - if (part) - return part; - - memstream = camel_stream_mem_new_with_buffer (data, len); - wrapper = camel_data_wrapper_new (); - camel_data_wrapper_construct_from_stream (wrapper, memstream); - camel_data_wrapper_set_mime_type (wrapper, type); - camel_object_unref (memstream); - part = camel_mime_part_new (); - camel_medium_set_content_object (CAMEL_MEDIUM (part), wrapper); - camel_object_unref (wrapper); - camel_mime_part_set_disposition (part, "inline"); - - g_hash_table_insert (fake_parts, GUINT_TO_POINTER (offset), part); - return part; -} - -static void -destroy_part (CamelObject *root, gpointer event_data, gpointer user_data) -{ - camel_object_unref (user_data); -} - /* text/enriched (RFC 1896) or text/richtext (included in RFC 1341) */ static gboolean handle_text_enriched (CamelMimePart *part, const char *mime_type, @@ -1655,7 +1622,7 @@ find_preferred_alternative (CamelMultipart *multipart, gboolean want_plain) CamelContentType *type = camel_mime_part_get_content_type (part); char *mime_type = header_content_type_simple (type); - g_strdown (mime_type); + g_ascii_strdown (mime_type, -1); if (want_plain && !strcmp (mime_type, "text/plain")) return part; handler = mail_lookup_handler (mime_type); |