Re: when will the "realize"&"unrealize" signals be emitted?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



realize and unrealize are called to allocate underlying GdkWindow resources
(i.e. windowing system backend resources) for the widgets.

Widgets can be unmapped at which point they will be unrealized, they can
be unmapped in order to move windows from one X screen to another X screen
for example, or when widgets are destroyed they are unrealized.

A widget must be visible and anchored in order to be mapped, a mapped widget
will be realized.

The user controls visibility, whether the widget is anchored means whether it's
inside a toplevel GtkWindow and finally, mapped is controlled by the container
implementation - i.e. a GtkNotebook decides to map its children on demand only
the first time they are shown.

Cheers,
           -Tristan

On Fri, Mar 26, 2010 at 2:39 AM, Randy <randyqiuxy@xxxxxxxxxxx> wrote:
> Hi list,
> I know a widget will realized,mapped and visible before it appears on
> the screen.Then,
> 1)
> But who can tell me what it actually does during the three periods?
> 2)
> when the "unrealize" signal emission happens? And what the correspond
> callback does?
> Thanks a lot!
>
> Best regards,
> Randy
>
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux