diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-07-21 04:59:36 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-07-21 04:59:36 +0800 |
commit | 8ab34219361284ed90033fdfb2c425ef804e1cc7 (patch) | |
tree | 2d0979fea28d9aecc7fa374cdce35bbe55b12a89 /addressbook/gui/minicard/e-minicard-control.c | |
parent | 782d8a198c2d18a0395cee729245e2f724ae0a90 (diff) | |
download | gsoc2013-evolution-8ab34219361284ed90033fdfb2c425ef804e1cc7.tar gsoc2013-evolution-8ab34219361284ed90033fdfb2c425ef804e1cc7.tar.gz gsoc2013-evolution-8ab34219361284ed90033fdfb2c425ef804e1cc7.tar.bz2 gsoc2013-evolution-8ab34219361284ed90033fdfb2c425ef804e1cc7.tar.lz gsoc2013-evolution-8ab34219361284ed90033fdfb2c425ef804e1cc7.tar.xz gsoc2013-evolution-8ab34219361284ed90033fdfb2c425ef804e1cc7.tar.zst gsoc2013-evolution-8ab34219361284ed90033fdfb2c425ef804e1cc7.zip |
Fixed the oaf info.
2000-07-20 Christopher James Lahey <clahey@helixcode.com>
* gui/component/addressbook.oafinfo: Fixed the oaf info.
* gui/minicard/.cvsignore, gui/minicard/Makefile.am,
gui/minicard/e-minicard-widget-test.c: Added a test for the
minicard widget.
* gui/minicard/e-minicard-control.c: Fixed the mime type.
* gui/minicard/e-minicard.c: Fixed some crashes if your parent
isn't a minicard view.
* gui/minicard/e-minicard-control.oafinfo: Removed.
svn path=/trunk/; revision=4249
Diffstat (limited to 'addressbook/gui/minicard/e-minicard-control.c')
-rw-r--r-- | addressbook/gui/minicard/e-minicard-control.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/addressbook/gui/minicard/e-minicard-control.c b/addressbook/gui/minicard/e-minicard-control.c index 3cda9b4ead..ab8aedff96 100644 --- a/addressbook/gui/minicard/e-minicard-control.c +++ b/addressbook/gui/minicard/e-minicard-control.c @@ -139,8 +139,7 @@ pstream_load (BonoboPersistStream *ps, const Bonobo_Stream stream, char *vcard; GtkWidget *minicard = data; - if (*type && g_strcasecmp (type, "text/plain") != 0 && - g_strcasecmp (type, "text/vCard") != 0 && + if (*type && 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,8 +175,7 @@ pstream_save (BonoboPersistStream *ps, const Bonobo_Stream stream, EMinicardWidget *minicard = data; int length; - if (*type && g_strcasecmp (type, "text/plain") != 0 && - g_strcasecmp (type, "text/vCard") != 0 && + if (*type && 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); @@ -242,7 +240,7 @@ static Bonobo_Persist_ContentTypeList * pstream_get_content_types (BonoboPersistStream *ps, void *closure, CORBA_Environment *ev) { - return bonobo_persist_generate_content_types (3, "text/plain", "text/vCard", "text/x-vCard"); + return bonobo_persist_generate_content_types (2, "text/vCard", "text/x-vCard"); } static BonoboObject * |