[evolution-patches] [Calendar] Patch for bug 333881



Hi
The username which comes from uri "caldav://" is null, the TEXT entry
will give a critical warning if the text is null.
The patch checks the text and set an empty string for the widget if it's null.

Jeff Cai.


Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/caldav/ChangeLog,v
retrieving revision 1.2
diff -u -r1.2 ChangeLog
--- ChangeLog	22 Feb 2006 11:23:14 -0000	1.2
+++ ChangeLog	8 Mar 2006 12:43:33 -0000
@@ -1,3 +1,9 @@
+2006-03-08  Jeff Cai  <jeff cai sun com>
+
+	** Fixes #333881
+	* caldav-source.c: (oge_caldav):
+	Set an empty string instead of null for a TEXT entry.
+
 2006-02-22  Irene.Huang <Irene Huang sun com>
 
 	Fixes bug #328252
Index: caldav-source.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/caldav/caldav-source.c,v
retrieving revision 1.1
diff -u -r1.1 caldav-source.c
--- caldav-source.c	16 Jan 2006 10:04:06 -0000	1.1
+++ caldav-source.c	8 Mar 2006 12:43:33 -0000
@@ -289,7 +289,7 @@
 
 	user = gtk_entry_new ();
 	gtk_widget_show (user);
-	gtk_entry_set_text (GTK_ENTRY (user), username);
+	gtk_entry_set_text (GTK_ENTRY (user), username ? username : "");
 	gtk_table_attach (GTK_TABLE (parent), user,
 			  1, 2, row + 2, row + 3,
 			  GTK_EXPAND | GTK_FILL, 0, 0, 0);


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