From 1d8aec51ccb4ea32affd95839c7d77b534937141 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sat, 7 Aug 2010 23:14:47 -0500 Subject: [PATCH] Elaborate interaction of gtk_widget_grab_default() and GtkEntry widgets --- gtk/gtkwidget.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 46456736fb..3da8d5816c 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -5613,7 +5613,10 @@ _gtk_widget_set_has_default (GtkWidget *widget, * yourself by calling gtk_widget_set_can_default (@widget, * %TRUE). The default widget is activated when * the user presses Enter in a window. Default widgets must be - * activatable, that is, gtk_widget_activate() should affect them. + * activatable, that is, gtk_widget_activate() should affect them. Note + * that #GtkEntry widgets require the "activates-default" property + * set to %TRUE before they activate the default widget when Enter + * is pressed and the #GtkEntry is focused. **/ void gtk_widget_grab_default (GtkWidget *widget)