[cairo-commit] goocanvas/src goocanvasutils.c,1.8,1.9

Damon Chaplin commit at pdx.freedesktop.org
Wed Feb 7 07:14:19 PST 2007


Committed by: damon

Update of /cvs/cairo/goocanvas/src
In directory kemper:/tmp/cvs-serv32198/src

Modified Files:
	goocanvasutils.c 
Log Message:
2007-02-07  Damon Chaplin  <damon at gnome.org>

	* src/goocanvasutils.c (goo_canvas_query_child_properties): check if
	type is classed before calling g_type_interface_peek().



Index: goocanvasutils.c
===================================================================
RCS file: /cvs/cairo/goocanvas/src/goocanvasutils.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- goocanvasutils.c	9 Dec 2006 12:03:05 -0000	1.8
+++ goocanvasutils.c	7 Feb 2007 15:14:13 -0000	1.9
@@ -451,6 +451,9 @@
 goo_canvas_query_child_properties (gpointer  class,
 				   guint     *n_properties)
 {
+  if (!G_TYPE_IS_CLASSED (G_TYPE_FROM_CLASS (class)))
+    return NULL;
+
   if (g_type_interface_peek (class, GOO_TYPE_CANVAS_ITEM))
     return goo_canvas_item_class_list_child_properties (class,
 							n_properties);



More information about the cairo-commit mailing list