aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-minicard-control.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-07-18 18:32:10 +0800
committerChris Lahey <clahey@src.gnome.org>2000-07-18 18:32:10 +0800
commit647bfab1a3c14274af950235c9555f2b60c6e1c8 (patch)
treee3903eebc4eb143e92edaf428ec8fdb829b2bf32 /addressbook/gui/widgets/e-minicard-control.c
parent5ec9ba9eea52cd24c7abcccc2ec2e99922570ef1 (diff)
downloadgsoc2013-evolution-647bfab1a3c14274af950235c9555f2b60c6e1c8.tar.gz
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/widgets/e-minicard-control.c')
-rw-r--r--addressbook/gui/widgets/e-minicard-control.c4
1 files changed, 3 insertions, 1 deletions
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 *