Re: some things in GTK+ 2.7.5
- From: Soeren Sandmann <sandmann daimi au dk>
- To: Benoit Carpentier <gtkool_2kx yahoo fr>
- Cc: gtk-devel-list gnome org
- Subject: Re: some things in GTK+ 2.7.5
- Date: 09 Aug 2005 23:16:24 +0200
Benoit Carpentier <gtkool_2kx yahoo fr> writes:
> lines 199 to 209 :
>
> if (GTK_WIDGET_MAPPED (widget) &&
> paned->child1->allocation.height <
> child1_allocation.height)
> {
> gtk_widget_size_allocate (paned->child2,
> &child2_allocation);
> gtk_widget_size_allocate (paned->child1,
> &child1_allocation);
> }
> else
> {
> gtk_widget_size_allocate (paned->child1,
> &child1_allocation);
> gtk_widget_size_allocate (paned->child2,
> &child2_allocation);
> }
>
> why is the order of allocating paned->child1 and
> paned->child2 important here ?
Because if the child widgets have windows, then allocating them in the
other order would make the windows overlap briefly, which causes
unnecessary flicker and repainting.
Søren
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]