diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-06-16 10:34:37 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-06-16 10:34:37 -0400 |
commit | 424dd8a46392d87de36abb78d8b261c54193758a (patch) | |
tree | 0b53127cdc6b2349023e3491ad72d0512dfd6771 /gtk/gtkactionobserver.c | |
parent | 7b1a7629bc3cbb64878d81cd81fc09aa9142d74b (diff) | |
download | gtk+-424dd8a46392d87de36abb78d8b261c54193758a.tar.gz |
actionobserver: Clarify primary_accel_changed docs
Either action_name or action_and_target may be NULL
here, and observer implementations should be careful
when checking those values.
Diffstat (limited to 'gtk/gtkactionobserver.c')
-rw-r--r-- | gtk/gtkactionobserver.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtkactionobserver.c b/gtk/gtkactionobserver.c index 77faa7fcb7..96791a9a27 100644 --- a/gtk/gtkactionobserver.c +++ b/gtk/gtkactionobserver.c @@ -158,15 +158,17 @@ gtk_action_observer_action_removed (GtkActionObserver *observer, * gtk_action_observer_primary_accel_changed: * @observer: a `GtkActionObserver` * @observable: the source of the event - * @action_name: the name of the action - * @action_and_target: detailed action of the changed accel, in “action and target” format + * @action_name: (nullable): the name of the action + * @action_and_target: (nullable): detailed action of the changed accel, in “action and target” format * * This function is called when an action that the observer is * registered to receive events for has one of its accelerators changed. * * Accelerator changes are reported for all targets associated with the - * action. The @action_and_target string should be used to check if the + * action. The @action_and_target string should be used to check if the * reported target is the one that the observer is interested in. + * + * Either @action_name or @action_and_target may be %NULL. */ void gtk_action_observer_primary_accel_changed (GtkActionObserver *observer, |