[evolution-patches] patch to fix #311555 (groupwise-features plugin)



hi,
the attached patch fixes
http://bugzilla.gnome.org/show_bug.cgi?id=311555

Thanks,
Vivek Jain
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/groupwise-features/ChangeLog,v
retrieving revision 1.23
diff -u -p -r1.23 ChangeLog
--- ChangeLog	6 Aug 2005 09:54:05 -0000	1.23
+++ ChangeLog	9 Aug 2005 07:09:08 -0000
@@ -1,3 +1,9 @@
+2005-08-09  Vivek Jain <jvivek novell com>
+	
+	* share-folder-common.c:(org_gnome_shared_folder_factory)
+	always use full name for the folder
+	**Fixes #311555
+
 2005-08-06  Sankar P  <psankar novell com>
 
 	* proxy.c: (proxy_dialog_store_widgets_data)
Index: share-folder-common.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/groupwise-features/share-folder-common.c,v
retrieving revision 1.3
diff -u -p -r1.3 share-folder-common.c
--- share-folder-common.c	19 Jul 2005 11:00:16 -0000	1.3
+++ share-folder-common.c	9 Aug 2005 07:09:08 -0000
@@ -396,7 +396,6 @@ org_gnome_shared_folder_factory (EPlugin
 	gchar *folderuri = NULL;
 	gchar *account = NULL;
 	gchar *id = NULL;
-	gchar *sub = NULL;
 	gchar *folder_name = NULL;
 	EGwConnection *cnc;
 	ShareFolder *sharing_tab;
@@ -410,15 +409,9 @@ org_gnome_shared_folder_factory (EPlugin
 	else
 		return NULL;
 
-	sub =  g_strrstr (folder_name, "/");
-	if (sub)
-		sub++;
-	else
-		sub = folder_name;	
-
 	 /* This is kind of bad..but we don't have types for all these folders.*/
 
-	if ( !( strcmp (sub, "Mailbox") && strcmp (sub, "Calendar") && strcmp (sub, "Contacts") && strcmp (sub, "Documents") && strcmp (sub, "Authored") && strcmp (sub, "Default Library") && strcmp (sub, "Work In Progress") && strcmp (sub, "Cabinet") && strcmp (sub, "Sent Items") && strcmp (sub, "Trash") && strcmp (sub, "Checklist"))) {
+	if ( !( strcmp (folder_name, "Mailbox") && strcmp (folder_name, "Calendar") && strcmp (folder_name, "Contacts") && strcmp (folder_name, "Documents") && strcmp (folder_name, "Authored") && strcmp (folder_name, "Default Library") && strcmp (folder_name, "Work In Progress") && strcmp (folder_name, "Cabinet") && strcmp (folder_name, "Sent Items") && strcmp (folder_name, "Trash") && strcmp (folder_name, "Checklist"))) {
 		g_free (folderuri);
 		return NULL;
 	}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]