[gtk+] Elaborate interaction of gtk_widget_grab_default() and GtkEntry widgets
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Elaborate interaction of gtk_widget_grab_default() and GtkEntry widgets
- Date: Sun, 8 Aug 2010 04:14:29 +0000 (UTC)
commit 1d8aec51ccb4ea32affd95839c7d77b534937141
Author: Dan Williams <dcbw redhat com>
Date: Sat Aug 7 23:14:47 2010 -0500
Elaborate interaction of gtk_widget_grab_default() and GtkEntry widgets
gtk/gtkwidget.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 4645673..3da8d58 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]