[gtk+] GtkApplication: Clarify docs a bit
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkApplication: Clarify docs a bit
- Date: Mon, 5 May 2014 11:25:35 +0000 (UTC)
commit 3e80ce39e1ca52bd59c3ed4a08d589519173af70
Author: Matthias Clasen <mclasen redhat com>
Date: Mon May 5 07:20:31 2014 -0400
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
gtk/gtkapplication.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index a074e9e..7333c1d 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -1483,10 +1483,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]