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:
parent
5671440629
commit
215f0ebb20
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue