Property bag / Evolution breakage



Hello,

There is this change:

Index: bonobo-property-bag.c
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/bonobo-property-bag.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- bonobo-property-bag.c	2000/10/17 16:58:46	1.24
+++ bonobo-property-bag.c	2000/10/25 03:49:33	1.25
@@ -963,7 +963,7 @@
 	prop = g_hash_table_lookup (pb->priv->props, name);
 
 	g_return_if_fail (prop != NULL);
-	g_return_if_fail (prop->type != new_value->_type);
+	g_return_if_fail (prop->type == new_value->_type);
 
 	notify_listeners (pb, prop, new_value, ev);
 }
@@ -984,7 +984,7 @@
 
 	g_return_if_fail (prop != NULL);
 	g_return_if_fail (prop->set_prop != NULL);
-	g_return_if_fail (prop->type != value->_type);
+	g_return_if_fail (prop->type == value->_type);
 
 	prop->set_prop (pb, value, prop->idx, prop->user_data);
 
that seems to break all of Evolution's components because their URIs
are set via property bags.  I don't know if the old code worked purely
by chance:  in the context of property bags, can you compare typecodes
purely by pointers to them?

  Federico




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