[evolution-patches] Request for code freeze break



This is a resend with subject changed to get noticed :)

Hi,
This is a request to break code freeze for evolution module to fix 
http://bugzilla.ximian.com/show_bug.cgi?id=73152

Whenever user changes any properties of Personal calendar or address
books , a duplicate Personal calendar or address book gets created on
next invocation of evolution. This can be very annoying and user may get
confused between one he was using and the one newly got created. 

The code is change is very minimal. Bascailly addressbook-file and
calednar-file plugins were setting the relative uris unconditionally and
hence changing the relative uris of Personal calendar and adress book
which should not happen. A check has been added to set relative uri only
when it did not exist earlier. This has been tested and approved by
evolution maitainers.

Siva

On Wed, 2005-03-02 at 18:14 +0100, Rodrigo Moya wrote:
> On Wed, 2005-03-02 at 13:20 +0100, Rodrigo Moya wrote:
> > On Wed, 2005-03-02 at 17:41 -0800, Sivaiah Nallagatla wrote:
> > > email message attachment, "Forwarded message - [evolution-patches]
> > > patch for #73512 (calendar file and adress book file plugins)"
> > > On Wed, 2005-03-02 at 17:41 -0800, Sivaiah Nallagatla wrote:
> > > > Both calendar-file and addressbook-file are cahnging the uri's of the
> > > > system calendar and books to sources uid from "system" when their
> > > > proprties are edited. So ensure_sources creates them again as it did not
> > > > system calendat and book.
> > > > 
> > calendar part looks ok to me
> 
> not that I can approve it, but addressbook part looks ok to me also
Index: plugins/calendar-file/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/calendar-file/ChangeLog,v
retrieving revision 1.2
diff -u -p -r1.2 ChangeLog
--- plugins/calendar-file/ChangeLog	25 Feb 2005 15:54:18 -0000	1.2
+++ plugins/calendar-file/ChangeLog	1 Mar 2005 19:35:44 -0000
@@ -1,3 +1,10 @@
+2005-02-28  Sivaiah Nallagatla <snallagatla novell com>
+
+	* calendar-file.c (e_calendar_file_dummy) :
+	don't set the relative uri if already present.
+                                                                                
+        part of fix for #73152
+	
 2005-02-24  Björn Torkelsson  <torkel acc umu se>
 
 	* calendar-file.c: Added author and description.
Index: plugins/calendar-file/calendar-file.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/calendar-file/calendar-file.c,v
retrieving revision 1.1
diff -u -p -r1.1 calendar-file.c
--- plugins/calendar-file/calendar-file.c	9 Jan 2005 17:50:11 -0000	1.1
+++ plugins/calendar-file/calendar-file.c	1 Mar 2005 19:35:44 -0000
@@ -42,10 +42,18 @@ e_calendar_file_dummy (EPlugin *epl, ECo
 	ECalConfigTargetSource *t = (ECalConfigTargetSource *) data->target;
 	ESource *source = t->source;
 	char *uri_text;
-	
+	char *relative_uri;
+
         uri_text = e_source_get_uri (source);
 	if (strncmp (uri_text, "file", 4)) {
 		g_free (uri_text);
+		
+		return NULL;
+	}
+
+	relative_uri = e_source_peek_relative_uri (source);
+	if (relative_uri && *relative_uri) {
+	  	g_free (uri_text);
 		
 		return NULL;
 	}
Index: plugins/addressbook-file/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/addressbook-file/ChangeLog,v
retrieving revision 1.2
diff -u -p -r1.2 ChangeLog
--- plugins/addressbook-file/ChangeLog	25 Feb 2005 15:54:17 -0000	1.2
+++ plugins/addressbook-file/ChangeLog	1 Mar 2005 19:35:44 -0000
@@ -1,3 +1,10 @@
+2005-02-28  Sivaiah Nallagatla <snallagatla novell com>
+
+	* addressbook-file.c (e_book_file_dummy) :
+	don't set the relative uri if already present.
+	Also change the typo in the prototype s/calendar/book
+	part of fix for #73152
+
 2005-02-24  Björn Torkelsson  <torkel acc umu se>
 
 	* org-gnome-addressbook-file.eplug.in: Added author and description.
Index: plugins/addressbook-file/addressbook-file.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/addressbook-file/addressbook-file.c,v
retrieving revision 1.1
diff -u -p -r1.1 addressbook-file.c
--- plugins/addressbook-file/addressbook-file.c	21 Jan 2005 15:29:02 -0000	1.1
+++ plugins/addressbook-file/addressbook-file.c	1 Mar 2005 19:35:44 -0000
@@ -33,7 +33,7 @@
 #include <libgnome/gnome-i18n.h>
 #include <string.h>
 
-GtkWidget *e_calendar_file_dummy (EPlugin *epl, EConfigHookItemFactoryData *data);
+GtkWidget *e_book_file_dummy (EPlugin *epl, EConfigHookItemFactoryData *data);
 
 GtkWidget *
 e_book_file_dummy (EPlugin *epl, EConfigHookItemFactoryData *data)
@@ -41,14 +41,22 @@ e_book_file_dummy (EPlugin *epl, EConfig
 	EABConfigTargetSource *t = (EABConfigTargetSource *) data->target;
 	ESource *source = t->source;
 	char *uri_text;
-	
+	char *relative_uri;
+
         uri_text = e_source_get_uri (source);
 	if (strncmp (uri_text, "file", 4)) {
 		g_free (uri_text);
 		
 		return NULL;
 	}
-
+	
+	relative_uri = e_source_peek_relative_uri (source);
+	if (relative_uri && *relative_uri) {
+	  	g_free (uri_text);
+		
+		return NULL;
+	}
+		
 	e_source_set_relative_uri (source, e_source_peek_uid (source));
         uri_text = e_source_get_uri (source);
 


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