Logo Search packages:      
Sourcecode: ardour version File versions

void Gtk::Window::set_default ( Gtk::Widget default_widget  ) 

The default widget is the widget that's activated when the user presses Enter in a dialog (for example). This function sets the default widget for a Gtk::Window. When setting (rather than unsetting) the default widget it's generally easier to call Gtk::Widget::grab_focus() on the widget. Before making a widget the default widget, you must set the Gtk::CAN_DEFAULT flag on the widget you'd like to make the default using GTK_WIDGET_SET_FLAGS().

default_widget Widget to be the default.

Definition at line 551 of file window.cc.

References gobj().

  gtk_window_set_default(gobj(), (default_widget).gobj());

Generated by  Doxygen 1.6.0   Back to index