Re: X11 GC from a GtkDrawingArea?
- From: Philip Kendall <pak ast cam ac uk>
- To: gtk-app-devel-list gnome org
- Subject: Re: X11 GC from a GtkDrawingArea?
- Date: Thu, 4 Jan 2001 10:29:49 +0000
On Mon, Jan 01, 2001 at 06:14:37PM -0500, John Vago wrote:
I have some open source that creates and draws to an X11 Window.  I'm
trying to modify  it to
draw on an drawing area  in an applet.
The 'legacy' code creates a window using  XCreateSimpleWindow() and the
GC from XCreateGC().
It then does an XCopyArea using the GC.
 I'm using GtkWidget area = gtk_drawing_area_new() and thought that
using  area->window would work
as the GC.
area->window is a GdkWindow*, not a GC.
Use the gtk_gc_* functions to create a GC (see
http://developer.gnome.org/doc/API/gtk/gtk-graphics-contexts.html)
HTH,
Phil
-- 
  Philip Kendall <pak ast cam ac uk>
  http://www.srcf.ucam.org/~pak21/
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]