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

Damon Chaplin commit at pdx.freedesktop.org
Thu Mar 8 06:46:05 PST 2007


Committed by: damon

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

Modified Files:
	goocanvaswidget.c 
Log Message:
2007-03-08  Damon Chaplin  <damon at gnome.org>

	* src/goocanvaswidget.c (goo_canvas_widget_set_canvas): unparent the
	widget if the canvas is set to NULL (i.e. when the item is removed
	from the canvas).



Index: goocanvaswidget.c
===================================================================
RCS file: /cvs/cairo/goocanvas/src/goocanvaswidget.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- goocanvaswidget.c	6 Mar 2007 13:21:26 -0000	1.8
+++ goocanvaswidget.c	8 Mar 2007 14:45:58 -0000	1.9
@@ -312,6 +312,11 @@
 				     GTK_WIDGET (simple->canvas));
 	    }
 	}
+      else
+	{
+	  if (witem->widget)
+	    gtk_widget_unparent (witem->widget);
+	}
     }
 }
 



More information about the cairo-commit mailing list