[evolution-patches] patch for e-source.c



A small patch for e-source.c, i have already committed to HEAD
This needs to go to gnome-2-8. Details are in ChangeLog

Siva
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/ChangeLog,v
retrieving revision 1.219
retrieving revision 1.220
diff -u -r1.219 -r1.220
--- ChangeLog	14 Jan 2005 09:54:19 -0000	1.219
+++ ChangeLog	21 Jan 2005 04:37:06 -0000	1.220
@@ -1,3 +1,13 @@
+2005-01-21  Sivaiah Nallagatla <snallagatla novell com>
+
+	* libedataserver/e-source.c 
+	(e_source_update_from_xml_node) : look for 
+	case where passed in node does not contain any properites.
+	In the case reset the properites of the source
+	and emit the changed signal
+	makes personal books unselectable
+	from auto-completion 
+	
 2005-01-14  Priit Laes <amd store20 com>
 
 	* configure.in: Added 'ar', 'cy', 'he', 'hi', 'is', 'mk', 'ml',	
Index: libedataserver/e-source.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserver/e-source.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- libedataserver/e-source.c	29 Dec 2004 15:24:25 -0000	1.17
+++ libedataserver/e-source.c	21 Jan 2005 04:37:06 -0000	1.18
@@ -373,7 +373,13 @@
 			changed = TRUE;
 		}
 	}
-
+	if (g_hash_table_size (source->priv->properties) && !node->children) {
+		g_hash_table_destroy (source->priv->properties);
+		source->priv->properties = g_hash_table_new_full (g_str_hash, g_str_equal,
+								  g_free, g_free);
+		changed = TRUE;
+	}
+	
 	for (node = node->children; node; node = node->next) {
 		if (!node->name)
 			continue;


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