Re: See-through container
- From: Tristan Van Berkom <tristan van berkom gmail com>
- To: "David E. Konerding" <dekonerding lbl gov>
- Cc: gtk-list gnome org
- Subject: Re: See-through container
- Date: Thu, 26 Jan 2006 17:06:26 -0500
David E. Konerding wrote:
[...]
Cancel that: I just noticed that gtkframe.c doesn't in fact create a
GdkWindow. However, a frame's widget does have a window; I can't
figure out what window that is!
heh, widget->window is never NULL, if widget->window was
created by the widget in question, then (widget->allocation.x == 0)
%100 of the time, widget->allocation is the area in widget->window
that you are allowed to draw in :)
So when you draw on widget->window on your GtkFrame:
(GTK_WIGET (frame)->window == GTK_WIDGET (layout)->window)
I really think that GtkLayout is just deficient in the fact that
it doesnt handle being a GTK_NO_WINDOW widget, IMO it
should be fixed.
Maybe GtkFixed so happens to handle GTK_NO_WINDOW ?
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]