Drawing to layout->bin_window
- Date: Mon, 12 May 2008 08:32:34 -0400
- From: "Ariel Martinez" <ama0021@xxxxxxxxxxxxxxx>
- Subject: Drawing to layout->bin_window
The GTKdocumentation says:
"When handling expose events on a GtkLayout, you must draw to GTK_LAYOUT (layout)->bin_window, rather than to GTK_WIDGET (layout)->window, as you would for a drawing area. "
But I get a compiler error saying that the structure has no member named bin_window.
In my expose_event handler, I have the following code:
GTK_LAYOUT(widget);
gdk_draw_drawable (GDK_DRAWABLE(widget->bin_window),widget->style->fg_gc[GTK_WIDGET_STATE(widget)], app->pixmap, event->area.x, event->area.y,event->area.x, event->area.y,event->area.width, event->area.height);
I cannot figure out why the above code produces this problem. Is there something wrong with my usage or is there a bug in GTK?
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list
- Follow-Ups:
- Re: Drawing to layout->bin_window
- From: Paul Davis
- Re: Drawing to layout->bin_window
- Prev by Date: Re: GTK+ and Pango - How to use chinese, Korean, Japanese fonts?
- Next by Date: Re: Drawing to layout->bin_window
- Previous by thread: gtk 2.12.9 build problem
- Next by thread: Re: Drawing to layout->bin_window
- Index(es):