Added a "grab_focus" signal for widgets. When the signal is emitted, the

1998-12-13  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gtk/gtkwidget.h (struct _GtkWidgetClass): Added a "grab_focus"
	signal for widgets.  When the signal is emitted, the widget will
	grab the focus.  This is needed to let the user press an
	accelerator key in a dialog box and have the corresponding widget
	be focused.

	* gtk/gtkwidget.c (gtk_widget_class_init): Create the "grab_focus"
	signal.  The default handler is simply gtk_widget_grab_focus().
This commit is contained in:
Federico Mena Quintero
1998-12-14 01:32:24 +00:00
committed by Arturo Espinosa
parent 113448e030
commit 3441c3f2c4
9 changed files with 89 additions and 0 deletions

View File

@ -272,6 +272,9 @@ struct _GtkWidgetClass
GtkAccelGroup *accel_group,
guint accel_key,
GdkModifierType accel_mods);
/* explicit focus */
void (* grab_focus) (GtkWidget *widget);
/* events */
gint (* event) (GtkWidget *widget,