Construct the GC before using it

2001-12-07  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c (applier_get_preview_widget): Construct the GC
	before using it
This commit is contained in:
Bradford Hovinen 2001-12-07 17:35:00 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 5671440629
commit 215f0ebb20
2 changed files with 2 additions and 0 deletions

View file

@ -2,4 +2,5 @@
* applier.c (applier_class_init): Initialize object_class properly
before using it; install property after {get|set}_property are set
(applier_get_preview_widget): Construct the GC before using it

View file

@ -447,6 +447,7 @@ applier_get_preview_widget (Applier *applier)
gdk_pixbuf_get_width (pixbuf),
gdk_pixbuf_get_height (pixbuf),
visual->depth);
gc = gdk_gc_new (GDK_ROOT_PARENT ());
gdk_pixbuf_render_to_drawable (pixbuf, pixmap, gc,
0, 0, 0, 0,