Re: [gtk-list] gtk_widget_show(), gtk_widget_realize() and gtk_widget_map()



> 
> 
> Hi,
> 
> Can someone could shed some light on the usage of
> gtk_widget_show(), gtk_widget_realize(), gtk_widget_map().

gtk_widget_realize() creates the (X) window + events associated if
it has one.

gtk_widget_map() displays the widget on the screen.

These 2 functions call gtk_<widget_name>_realize (resp. map) and
are widget's internal. They are called automatically by the widget.

gtk_widget_show() is the user way to display a widget on the screen.
Basically, it calls gtk_widget_map().


These functions are explained in the tutorial chap. 20 (I guess)
"creating your own widget" (or something like that).


Hope this help.


Patrice.



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