[gtk/wip/matthiasc/can-focus: 30/31] Small documentation tweaks
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/can-focus: 30/31] Small documentation tweaks
- Date: Thu, 9 Apr 2020 22:31:38 +0000 (UTC)
commit 16c820c2f05dfa83d4a2ec0f84e55ebf106ca628
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Apr 9 17:17:58 2020 -0400
Small documentation tweaks
Update the docs for GtkWidget:can-focus and :focus-on-click.
gtk/gtkwidget.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 706fc5f0be..50cdc28caf 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -974,6 +974,12 @@ gtk_widget_class_init (GtkWidgetClass *klass)
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
+ /**
+ * GtkWidget:can-focus:
+ *
+ * Whether the widget or any of its descendents can accept
+ * the input focus.
+ */
widget_props[PROP_CAN_FOCUS] =
g_param_spec_boolean ("can-focus",
P_("Can focus"),
@@ -1001,9 +1007,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether the widget should grab focus when it is clicked with the mouse.
*
* This property is only relevant for widgets that can take focus.
- *
- * Before 3.20, several widgets (GtkButton, GtkFileChooserButton,
- * GtkComboBox) implemented this property individually.
*/
widget_props[PROP_FOCUS_ON_CLICK] =
g_param_spec_boolean ("focus-on-click",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]