summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-08-07 23:14:47 -0500
committerDan Williams <dcbw@redhat.com>2010-08-07 23:14:47 -0500
commit1d8aec51ccb4ea32affd95839c7d77b534937141 (patch)
tree4764bd2fbd2525c5e150e752f817bd4feea58915 /gtk
parent9ddef2365fe6785b2ed37dc20707fd86e194db25 (diff)
downloadgtk+-1d8aec51ccb4ea32affd95839c7d77b534937141.tar.gz
Elaborate interaction of gtk_widget_grab_default() and GtkEntry widgets
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkwidget.c5
1 files changed, 4 insertions, 1 deletions
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 <literal>gtk_widget_set_can_default (@widget,
* %TRUE)</literal>. 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)