# HG changeset patch # User Richard Laager # Date 1120372936 0 # Node ID bc700cc98b8292fb46d1b2f720a4650771ef09c5 # Parent da05145441ca675dffcebc7173d9debb1a6769e4 [gaim-migrate @ 12992] Patch #1218079 from Stanislav Brabec "Attached patch adds basic support for Novell Groupwise to Gaim Evolution integration." committer: Tailor Script diff -r da05145441ca -r bc700cc98b82 ChangeLog --- a/ChangeLog Sun Jul 03 06:12:50 2005 +0000 +++ b/ChangeLog Sun Jul 03 06:42:16 2005 +0000 @@ -41,6 +41,7 @@ transfer window * Newly installed plugins can now be activated without restarting Gaim (Sadrul Habib Chowdhury) + * The Evolution Integration plugin now supports Groupwise contacts Bug fixes: * People using input methods can now use Enter again. diff -r da05145441ca -r bc700cc98b82 plugins/gevolution/add_buddy_dialog.c --- a/plugins/gevolution/add_buddy_dialog.c Sun Jul 03 06:12:50 2005 +0000 +++ b/plugins/gevolution/add_buddy_dialog.c Sun Jul 03 06:42:16 2005 +0000 @@ -291,7 +291,7 @@ { EContact *contact = E_CONTACT(c->data); const char *name; - GList *aims, *jabbers, *yahoos, *msns, *icqs; + GList *aims, *jabbers, *yahoos, *msns, *icqs, *novells; name = e_contact_get_const(contact, E_CONTACT_FULL_NAME); @@ -300,9 +300,10 @@ yahoos = e_contact_get(contact, E_CONTACT_IM_YAHOO); msns = e_contact_get(contact, E_CONTACT_IM_MSN); icqs = e_contact_get(contact, E_CONTACT_IM_ICQ); + novells = e_contact_get(contact, E_CONTACT_IM_GROUPWISE); if (aims == NULL && jabbers == NULL && yahoos == NULL && - msns == NULL && icqs == NULL) + msns == NULL && icqs == NULL && novells == NULL) { GtkTreeIter iter; @@ -320,6 +321,7 @@ add_ims(dialog, contact, name, yahoos, "prpl-yahoo"); add_ims(dialog, contact, name, msns, "prpl-msn"); add_ims(dialog, contact, name, icqs, "prpl-oscar"); + add_ims(dialog, contact, name, novells, "prpl-novell"); } } @@ -361,7 +363,7 @@ { EContact *contact = E_CONTACT(l->data); const char *name; - GList *aims, *jabbers, *yahoos, *msns, *icqs; + GList *aims, *jabbers, *yahoos, *msns, *icqs, *novells; name = e_contact_get_const(contact, E_CONTACT_FULL_NAME); @@ -376,9 +378,10 @@ yahoos = e_contact_get(contact, E_CONTACT_IM_YAHOO); msns = e_contact_get(contact, E_CONTACT_IM_MSN); icqs = e_contact_get(contact, E_CONTACT_IM_ICQ); + novells = e_contact_get(contact, E_CONTACT_IM_GROUPWISE); if (aims == NULL && jabbers == NULL && yahoos == NULL && - msns == NULL && icqs == NULL) + msns == NULL && icqs == NULL && novells == NULL) { GtkTreeIter iter; @@ -396,6 +399,7 @@ add_ims(dialog, contact, name, yahoos, "prpl-yahoo"); add_ims(dialog, contact, name, msns, "prpl-msn"); add_ims(dialog, contact, name, icqs, "prpl-oscar"); + add_ims(dialog, contact, name, novells, "prpl-novell"); } } } diff -r da05145441ca -r bc700cc98b82 plugins/gevolution/gevo-util.c --- a/plugins/gevolution/gevo-util.c Sun Jul 03 06:12:50 2005 +0000 +++ b/plugins/gevolution/gevo-util.c Sun Jul 03 06:42:16 2005 +0000 @@ -112,6 +112,8 @@ protocol_field = E_CONTACT_IM_YAHOO; else if (!strcmp(protocol_id, "prpl-jabber")) protocol_field = E_CONTACT_IM_JABBER; + else if (!strcmp(protocol_id, "prpl-novell")) + protocol_field = E_CONTACT_IM_GROUPWISE; return protocol_field; } diff -r da05145441ca -r bc700cc98b82 plugins/gevolution/gevolution.c --- a/plugins/gevolution/gevolution.c Sun Jul 03 06:12:50 2005 +0000 +++ b/plugins/gevolution/gevolution.c Sun Jul 03 06:42:16 2005 +0000 @@ -111,6 +111,7 @@ update_ims_from_contact(contact, name, "prpl-yahoo", E_CONTACT_IM_YAHOO); update_ims_from_contact(contact, name, "prpl-msn", E_CONTACT_IM_MSN); update_ims_from_contact(contact, name, "prpl-oscar", E_CONTACT_IM_ICQ); + update_ims_from_contact(contact, name, "prpl-novell", E_CONTACT_IM_GROUPWISE); } static void diff -r da05145441ca -r bc700cc98b82 plugins/gevolution/new_person_dialog.c --- a/plugins/gevolution/new_person_dialog.c Sun Jul 03 06:12:50 2005 +0000 +++ b/plugins/gevolution/new_person_dialog.c Sun Jul 03 06:42:16 2005 +0000 @@ -154,6 +154,8 @@ field = E_CONTACT_IM_JABBER; else if (!strcmp(im_service, "prpl-msn")) field = E_CONTACT_IM_MSN; + else if (!strcmp(im_service, "prpl-novell")) + field = E_CONTACT_IM_GROUPWISE; if (field > 0) {