Esteban Quijano Vincenzi <[EMAIL PROTECTED]> 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
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list