diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-05-05 07:20:31 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-05-12 07:40:44 -0400 |
commit | 392c9a46ad6b0d26f72176de0d20cb3265fa2ffe (patch) | |
tree | 4de0661f2918d84cbfaa8dceebdf082539999a2d | |
parent | 58a740b29a5389855f90aa312ac5a3604f401657 (diff) | |
download | gtk+-392c9a46ad6b0d26f72176de0d20cb3265fa2ffe.tar.gz |
GtkApplication: Clarify docs a bit
Explicitly mention how gtk_application_set_accels_for_action can
be used to remove all accelerators for an action.
https://bugzilla.gnome.org/show_bug.cgi?id=729451
-rw-r--r-- | gtk/gtkapplication.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c index 1022037eb6..e6ea47fe9f 100644 --- a/gtk/gtkapplication.c +++ b/gtk/gtkapplication.c @@ -1477,10 +1477,13 @@ normalise_detailed_name (const gchar *detailed_action_name) * @accels: (array zero-terminated=1): a list of accelerators in the format understood by * gtk_accelerator_parse() * - * Sets one or more keyboard accelerator that will trigger the + * Sets zero or more keyboard accelerators that will trigger the * given action. The first item in @accels will be the primary * accelerator, which may be displayed in the UI. * + * To remove all accelerators for an action, use an empty, zero-terminated + * array for @accels. + * * Since: 3.12 */ void |