Re: What are map and realize for?
- From: Havoc Pennington <hp redhat com>
- To: Esteban Quijano Vincenzi <equijano videotek tv>
- Cc: gtk-list gnome org
- Subject: Re: What are map and realize for?
- Date: 04 May 2001 09:53:35 -0400
Esteban Quijano Vincenzi <equijano videotek tv> writes:
> What are map and realize functions for?
> Why are they so important?
>
See
http://mail.gnome.org/archives/gtk-app-devel-list/2001-April/msg00317.html
for some discussion.
realize puts the widget on a display, realizing its conceptual
properties ("foreground color") in the concrete display ("allocated
color in this display's colormap").
map pops the widget on the screen.
You should pretty much never need to call gtk_widget_realize(), and
never, ever call gtk_widget_map(); there are lots of suggestions on
this list to call _realize() for various reasons but in general it's
better to do something different in those cases, calling realize() is
not the best solution. (e.g. to create pixmaps, use
gdk_pixmap_colormap_create_from_xpm_d() and get a colormap from
gtk_widget_get_colormap(), then you don't need to realize the window).
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]