Re: Drawing to layout->bin_window
- From: Paul Davis <paul linuxaudiosystems com>
- To: Ariel Martinez <ama0021 hunter cuny edu>
- Cc: gtk-list gnome org
- Subject: Re: Drawing to layout->bin_window
- Date: Mon, 12 May 2008 09:01:52 -0400
On Mon, 2008-05-12 at 08:32 -0400, Ariel Martinez wrote:
> 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)],
GDK_DRAWABLE(((GTK_LAYOUT)widget)->bin_window)), ....
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]