diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-07-18 18:32:10 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-07-18 18:32:10 +0800 |
commit | 647bfab1a3c14274af950235c9555f2b60c6e1c8 (patch) | |
tree | e3903eebc4eb143e92edaf428ec8fdb829b2bf32 /addressbook/gui | |
parent | 5ec9ba9eea52cd24c7abcccc2ec2e99922570ef1 (diff) | |
download | gsoc2013-evolution-647bfab1a3c14274af950235c9555f2b60c6e1c8.tar gsoc2013-evolution-647bfab1a3c14274af950235c9555f2b60c6e1c8.tar.gz gsoc2013-evolution-647bfab1a3c14274af950235c9555f2b60c6e1c8.tar.bz2 gsoc2013-evolution-647bfab1a3c14274af950235c9555f2b60c6e1c8.tar.lz gsoc2013-evolution-647bfab1a3c14274af950235c9555f2b60c6e1c8.tar.xz gsoc2013-evolution-647bfab1a3c14274af950235c9555f2b60c6e1c8.tar.zst gsoc2013-evolution-647bfab1a3c14274af950235c9555f2b60c6e1c8.zip |
Added "text/vCard" to the list of mime types we support.
2000-07-18 Christopher James Lahey <clahey@helixcode.com>
* gui/minicard/e-minicard-control.c: Added "text/vCard" to the
list of mime types we support.
svn path=/trunk/; revision=4212
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/minicard/e-minicard-control.c | 4 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard-control.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/addressbook/gui/minicard/e-minicard-control.c b/addressbook/gui/minicard/e-minicard-control.c index 3946618627..3cda9b4ead 100644 --- a/addressbook/gui/minicard/e-minicard-control.c +++ b/addressbook/gui/minicard/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 * 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 * |