summaryrefslogtreecommitdiff
path: root/gtk/gtkwidget.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-06-22 19:17:30 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-06-22 19:17:30 -0400
commit203d612afd78d577cb3ae544763824771d049c97 (patch)
tree3034070e164fad4e151fbccd01f0dfa7f49a3996 /gtk/gtkwidget.c
parent135580108a78512d7a998d5340bb4b21a7fa6bec (diff)
downloadgtk+-203d612afd78d577cb3ae544763824771d049c97.tar.gz
widget: Clarify docs for action inheritance
Spell out how action inheritance works wrt to prefixes.
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r--gtk/gtkwidget.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 944cf85d18..045dcef9d7 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11928,11 +11928,15 @@ _gtk_widget_get_action_muxer (GtkWidget *widget,
*
* Inserts @group into @widget. Children of @widget that implement
* #GtkActionable can then be associated with actions in @group by
- * setting their “action-name” to
- * @prefix.`action-name`.
+ * setting their “action-name” to @prefix.`action-name`.
*
- * If @group is %NULL, a previously inserted group for @name is removed
- * from @widget.
+ * Note that inheritance is defined for individual actions. I.e.
+ * even if you insert a group with prefix @prefix, actions with
+ * the same prefix will still be inherited from the parent, unless
+ * the group contains an action with the same name.
+ *
+ * If @group is %NULL, a previously inserted group for @name is
+ * removed from @widget.
*/
void
gtk_widget_insert_action_group (GtkWidget *widget,