diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-04-13 19:22:35 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-04-13 19:22:35 +0000 |
commit | 5854707bd97fa9b5206353a98dbcfa4b578c4604 (patch) | |
tree | 85c9d4d10ae5ba5e266b08dd565ff0964c5e4c12 /gtk/gtkactiongroup.c | |
parent | 290861bffe9b71d5cc69d6966a16a212671e225a (diff) | |
download | gtk+-5854707bd97fa9b5206353a98dbcfa4b578c4604.tar.gz |
Document possible accelerator gotcha when using this function. (#139641,
2004-04-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkactiongroup.c (gtk_action_group_add_action): Document
possible accelerator gotcha when using this function. (#139641,
Christian Persch)
Diffstat (limited to 'gtk/gtkactiongroup.c')
-rw-r--r-- | gtk/gtkactiongroup.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkactiongroup.c b/gtk/gtkactiongroup.c index 67cc65247d..a9318b0dba 100644 --- a/gtk/gtkactiongroup.c +++ b/gtk/gtkactiongroup.c @@ -525,7 +525,12 @@ gtk_action_group_get_action (GtkActionGroup *action_group, * @action_group: the action group * @action: an action * - * Adds an action object to the action group. + * Adds an action object to the action group. Note that this function + * does not set up the accel path of the action, which can lead to problems + * if a user tries to modify the accelerator of a menuitem associated with + * the action. Therefore you must either set the accel path yourself with + * gtk_action_set_accel_path(), or use + * <literal>gtk_action_group_add_action_with_accel (..., NULL)</literal>. * * Since: 2.4 */ |