Re: [gtk-list] default widgets




On Wed, 2 Sep 1998 beach@ataman.com wrote:
> What is the difference between
>    
> gtk_window_set_default( GtkWindow*, GtkWidget* )
>

This sets the current default widget in the GtkWindow to the GtkWidget.
 
> and
>    
> gtk_widget_grab_default( GtkWidget* );
> 

This sets the current default widget to the GtkWidget. It is just a
convenience wrapper for gtk_window_set_default that determines the parent
window of the widget. If there's no parent window (i.e. you haven't added
the widget to a window yet) it will do nothing.

Havoc




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