diff options
author | Not Zed <NotZed@Ximian.com> | 2004-01-05 19:16:08 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-01-05 19:16:08 +0800 |
commit | 02f3533f7430fcdff6893fa2fc7c3f20d52aeed1 (patch) | |
tree | 2734240ab96862743fbd3008199b1fc4dc1c95d9 /mail/em-format.h | |
parent | 86b8defcabcd4baf4d33b415e610e0786be4dc82 (diff) | |
download | gsoc2013-evolution-02f3533f7430fcdff6893fa2fc7c3f20d52aeed1.tar.gz gsoc2013-evolution-02f3533f7430fcdff6893fa2fc7c3f20d52aeed1.tar.zst gsoc2013-evolution-02f3533f7430fcdff6893fa2fc7c3f20d52aeed1.zip |
** See bug #50996.
2004-01-05 Not Zed <NotZed@Ximian.com>
** See bug #50996.
* em-format-html-display.c (efhd_find_handler): implement override
for unknown types, try bonobo handlers.
(efhd_bonobo_unknown): formathandler for bonobo objects.
* em-format.c (em_format_find_handler): make virtual, rename to
emf_find_handler.
svn path=/trunk/; revision=24043
Diffstat (limited to 'mail/em-format.h')
-rw-r--r-- | mail/em-format.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/em-format.h b/mail/em-format.h index cc0f6bdd75..f4cbb3fbbc 100644 --- a/mail/em-format.h +++ b/mail/em-format.h @@ -126,6 +126,9 @@ struct _EMFormatClass { GHashTable *type_handlers; + /* lookup handler, default falls back to hashtable above */ + const EMFormatHandler *(*find_handler)(EMFormat *, const char *mime_type); + /* start formatting a message */ void (*format_clone)(EMFormat *, struct _CamelMedium *, EMFormat *); /* some internel error/inconsistency */ @@ -171,7 +174,7 @@ GType em_format_get_type(void); void em_format_class_add_handler(EMFormatClass *emfc, EMFormatHandler *info); void em_format_class_remove_handler (EMFormatClass *emfc, const char *mime_type); -const EMFormatHandler *em_format_find_handler(EMFormat *emf, const char *mime_type); +#define em_format_find_handler(emf, type) ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->find_handler((emf), (type)) const EMFormatHandler *em_format_fallback_handler(EMFormat *emf, const char *mime_type); /* puri is short for pending uri ... really */ |