[cairo-commit] goocanvas/demo table-demo.c,1.3,1.4

Damon Chaplin commit at pdx.freedesktop.org
Tue Feb 13 05:25:15 PST 2007


Committed by: damon

Update of /cvs/cairo/goocanvas/demo
In directory kemper:/tmp/cvs-serv32637/demo

Modified Files:
	table-demo.c 
Log Message:
2007-02-13  Damon Chaplin  <damon at gnome.org>

	* src/goocanvas.c (goo_canvas_size_allocate): only allocate the child
	widgets if we are realized, otherwise it crashes.



Index: table-demo.c
===================================================================
RCS file: /cvs/cairo/goocanvas/demo/table-demo.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- table-demo.c	2 Feb 2007 21:54:00 -0000	1.3
+++ table-demo.c	13 Feb 2007 13:25:09 -0000	1.4
@@ -204,7 +204,6 @@
   /* Create the window and widgets. */
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_default_size (GTK_WINDOW (window), 640, 600);
-  gtk_widget_show (window);
   g_signal_connect (window, "delete_event", (GtkSignalFunc) on_delete_event,
 		    NULL);
 
@@ -265,6 +264,8 @@
 
   gtk_widget_show (canvas);
 
+  gtk_widget_show (window);
+
   /* Pass control to the GTK+ main event loop. */
   gtk_main ();
 



More information about the cairo-commit mailing list