From 647bfab1a3c14274af950235c9555f2b60c6e1c8 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 18 Jul 2000 10:32:10 +0000 Subject: Added "text/vCard" to the list of mime types we support. 2000-07-18 Christopher James Lahey * gui/minicard/e-minicard-control.c: Added "text/vCard" to the list of mime types we support. svn path=/trunk/; revision=4212 --- addressbook/gui/widgets/e-minicard-control.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/widgets') diff --git a/addressbook/gui/widgets/e-minicard-control.c b/addressbook/gui/widgets/e-minicard-control.c index 3946618627..3cda9b4ead 100644 --- a/addressbook/gui/widgets/e-minicard-control.c +++ b/addressbook/gui/widgets/e-minicard-control.c @@ -140,6 +140,7 @@ pstream_load (BonoboPersistStream *ps, const Bonobo_Stream stream, GtkWidget *minicard = data; if (*type && g_strcasecmp (type, "text/plain") != 0 && + g_strcasecmp (type, "text/vCard") != 0 && g_strcasecmp (type, "text/x-vCard") != 0) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_Bonobo_Persist_WrongDataType, NULL); @@ -176,6 +177,7 @@ pstream_save (BonoboPersistStream *ps, const Bonobo_Stream stream, int length; if (*type && g_strcasecmp (type, "text/plain") != 0 && + g_strcasecmp (type, "text/vCard") != 0 && g_strcasecmp (type, "text/x-vCard") != 0) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_Bonobo_Persist_WrongDataType, NULL); @@ -240,7 +242,7 @@ static Bonobo_Persist_ContentTypeList * pstream_get_content_types (BonoboPersistStream *ps, void *closure, CORBA_Environment *ev) { - return bonobo_persist_generate_content_types (2, "text/plain", "text/x-vCard"); + return bonobo_persist_generate_content_types (3, "text/plain", "text/vCard", "text/x-vCard"); } static BonoboObject * -- cgit