diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-04-29 21:36:30 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-04-29 21:36:30 +0000 |
commit | 40532b0d45e4d5bd72f039725acbfcee079582f2 (patch) | |
tree | 53a05f45808371c21022b778dc2ee004d32960e6 /gtk/gtkactiongroup.c | |
parent | e28adbacc73f8dfff98bce45821374e31b7a0f8e (diff) | |
download | gtk+-40532b0d45e4d5bd72f039725acbfcee079582f2.tar.gz |
Use _gtk_action_emit_activate() instead of directly emitting the activate
2004-04-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaction.c (closure_accel_activate): Use
_gtk_action_emit_activate() instead of directly
emitting the activate signal. (#141429, Jody Goldberg)
* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
Warn people when the accelerator can not be
parsed. (#141429, Jody Goldberg)
Diffstat (limited to 'gtk/gtkactiongroup.c')
-rw-r--r-- | gtk/gtkactiongroup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkactiongroup.c b/gtk/gtkactiongroup.c index a9318b0dba..f265bd2c29 100644 --- a/gtk/gtkactiongroup.c +++ b/gtk/gtkactiongroup.c @@ -584,7 +584,12 @@ gtk_action_group_add_action_with_accel (GtkActionGroup *action_group, action_group->private_data->name, "/", name, NULL); if (accelerator) + { gtk_accelerator_parse (accelerator, &accel_key, &accel_mods); + if (accel_key == 0) + g_warning ("Unable to parse accelerator '%s' for action '%s'", + accelerator, name); + } else if (stock_id && gtk_stock_lookup (stock_id, &stock_item)) { accel_key = stock_item.keyval; |