aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-05 19:16:08 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-05 19:16:08 +0800
commit02f3533f7430fcdff6893fa2fc7c3f20d52aeed1 (patch)
tree2734240ab96862743fbd3008199b1fc4dc1c95d9 /mail/em-format.c
parent86b8defcabcd4baf4d33b415e610e0786be4dc82 (diff)
downloadgsoc2013-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.c')
-rw-r--r--mail/em-format.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/em-format.c b/mail/em-format.c
index b3f9b9a344..6d16e48df0 100644
--- a/mail/em-format.c
+++ b/mail/em-format.c
@@ -57,6 +57,7 @@
static void emf_builtin_init(EMFormatClass *);
static const char *emf_snoop_part(CamelMimePart *part);
+static const EMFormatHandler *emf_find_handler(EMFormat *emf, const char *mime_type);
static void emf_format_clone(EMFormat *emf, CamelMedium *msg, EMFormat *emfsource);
static gboolean emf_busy(EMFormat *emf);
@@ -111,6 +112,7 @@ emf_class_init(GObjectClass *klass)
emf_builtin_init((EMFormatClass *)klass);
klass->finalize = emf_finalise;
+ ((EMFormatClass *)klass)->find_handler = emf_find_handler;
((EMFormatClass *)klass)->format_clone = emf_format_clone;
((EMFormatClass *)klass)->busy = emf_busy;
@@ -184,7 +186,6 @@ em_format_class_remove_handler (EMFormatClass *emfc, const char *mime_type)
g_hash_table_remove (emfc->type_handlers, mime_type);
}
-
/**
* em_format_find_handler:
* @emf:
@@ -194,8 +195,8 @@ em_format_class_remove_handler (EMFormatClass *emfc, const char *mime_type)
*
* Return value: NULL if no handler is available.
**/
-const EMFormatHandler *
-em_format_find_handler(EMFormat *emf, const char *mime_type)
+static const EMFormatHandler *
+emf_find_handler(EMFormat *emf, const char *mime_type)
{
EMFormatClass *emfc = (EMFormatClass *)G_OBJECT_GET_CLASS(emf);