diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-06-22 19:17:30 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-06-22 19:17:30 -0400 |
commit | 203d612afd78d577cb3ae544763824771d049c97 (patch) | |
tree | 3034070e164fad4e151fbccd01f0dfa7f49a3996 /gtk/gtkwidget.c | |
parent | 135580108a78512d7a998d5340bb4b21a7fa6bec (diff) | |
download | gtk+-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.c | 12 |
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, |