RE: Widget order in GtkFixed
- From: Alex Pavloff <apavloff eason com>
- To: "'Tristan Van Berkom'" <vantr touchtunes com>
- Cc: "'gtk-app-devel-list gnome org'" <gtk-app-devel-list gnome org>
- Subject: RE: Widget order in GtkFixed
- Date: Tue, 4 Mar 2003 11:57:31 -0800
-----Original Message-----
From: Tristan Van Berkom [mailto:vantr touchtunes com]
Sent: Tuesday, March 04, 2003 11:12 AM
To: Alex Pavloff
Cc: 'gtk-app-devel-list gnome org'
Subject: Re: Widget order in GtkFixed
If this really works; (to my great surprise) I would look
at gtkfixed.c and check out the "expose" event handlers.
gtk_container_add(GTK_CONTAINER(fixed), widget);
or consequently gtk_fixed_put(...)
will add the new widget to a GList * and then
refer to this GList * to draw the children
in the expose event handler.
Hrrmmm it appears that expose calls from the container just call forall for
fixed, which just calls gtk_fixed_forall which just calls expose on the
widgets one at a time.
Owen Taylor emailed me and pointed out that widgets with the own windows
(GtkEntry) will draw last. This explains everything.
You can have a button with a child label; but a label on top
of a button is another story.
It works just fine actually. I can press the button all day long and it
looks right. Want a screen shot? :-)
Alex Pavloff - apavloff eason com
Eason Technology -- www.eason.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]