[evolution-patches] bug48538 : Evolution - 1.4.4 Contacts [was: Addressbook] -- can not move & rename contact folders
- From: Gilbert Fang <gilbert fang sun com>
- To: Chris Toshok <toshok ximian com>
- Cc: "evolution-patches ximian com" <evolution-patches ximian com>
- Subject: [evolution-patches] bug48538 : Evolution - 1.4.4 Contacts [was: Addressbook] -- can not move & rename contact folders
- Date: 18 Sep 2003 14:58:34 +0800
Hi, Toshok
This bug is an serious one for us.
Please review the patch for the bug
ChangeLog
+2003-09-18 Gilbert Fang <gilbert fang sun com>
+
+ * addressbook/gui/component/addressbook-component.c (): remove the
+ "addressbook.db.summary" correctly. #48538
+
Best regards
Gilbert
Index: addressbook/gui/component/addressbook-component.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-component.c,v
retrieving revision 1.89.4.1
diff -u -r1.89.4.1 addressbook-component.c
--- addressbook/gui/component/addressbook-component.c 17 Jul 2003 16:58:02 -0000 1.89.4.1
+++ addressbook/gui/component/addressbook-component.c 18 Sep 2003 06:39:31 -0000
@@ -299,6 +299,7 @@
GnomeVFSURI *src_uri;
GnomeVFSURI *dest_uri;
GnomeVFSResult result;
+ GNOME_Evolution_ShellComponentListener_Result e_result;
CORBA_exception_init (&ev);
@@ -342,17 +343,19 @@
return;
}
- result = xfer_file (src_uri, dest_uri, "addressbook.db", remove_source);
+ e_result = xfer_file (src_uri, dest_uri, "addressbook.db", remove_source);
- if ((result == GNOME_Evolution_ShellComponentListener_OK) && remove_source) {
+ if ((e_result == GNOME_Evolution_ShellComponentListener_OK) && remove_source) {
char *summary_uri;
summary_uri = g_strconcat (source_physical_uri, "/addressbook.db.summary", NULL);
result = gnome_vfs_unlink (summary_uri);
+ if (result != GNOME_VFS_OK && result != GNOME_VFS_ERROR_NOT_FOUND)
+ e_result = GNOME_Evolution_ShellComponentListener_PERMISSION_DENIED;
g_free (summary_uri);
}
- GNOME_Evolution_ShellComponentListener_notifyResult (listener, result, &ev);
+ GNOME_Evolution_ShellComponentListener_notifyResult (listener, e_result, &ev);
gnome_vfs_uri_unref (src_uri);
gnome_vfs_uri_unref (dest_uri);
Index: addressbook/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.1435.2.12
diff -u -r1.1435.2.12 ChangeLog
--- addressbook/ChangeLog 17 Sep 2003 20:09:02 -0000 1.1435.2.12
+++ addressbook/ChangeLog 18 Sep 2003 06:39:37 -0000
@@ -1,3 +1,8 @@
+2003-09-18 Gilbert Fang <gilbert fang sun com>
+
+ * addressbook/gui/component/addressbook-component.c (): remove the
+ "addressbook.db.summary" correctly. #48538
+
2003-09-17 Chris Toshok <toshok ximian com>
* gui/component/addressbook.c (addressbook_new_control): don't use
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]