From 868bee654064dca35b67c10db79126ebdae24f55 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 20 Jul 2004 18:36:07 +0000 Subject: [PATCH] make sure that the "image-new" and "image-new-from-image" actions always 2004-07-20 Michael Natterer * app/actions/image-actions.c: make sure that the "image-new" and "image-new-from-image" actions always have the same shortcut. --- ChangeLog | 5 +++++ app/actions/image-actions.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e105a823d7..aa5ebeb911 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-07-20 Michael Natterer + + * app/actions/image-actions.c: make sure that the "image-new" and + "image-new-from-image" actions always have the same shortcut. + 2004-07-20 Bill Skaggs * plug-ins/Lighting/lighting_main.c diff --git a/app/actions/image-actions.c b/app/actions/image-actions.c index 5f72c48a5d..0d5f656ec1 100644 --- a/app/actions/image-actions.c +++ b/app/actions/image-actions.c @@ -63,7 +63,7 @@ static GimpActionEntry image_actions[] = GIMP_HELP_FILE_NEW }, { "image-new-from-image", GTK_STOCK_NEW, - N_("_New..."), "N", NULL, + N_("_New..."), NULL, NULL, G_CALLBACK (image_new_from_image_cmd_callback), GIMP_HELP_FILE_NEW }, @@ -157,10 +157,16 @@ static GimpEnumActionEntry image_rotate_actions[] = void image_actions_setup (GimpActionGroup *group) { + GtkAction *action; + gimp_action_group_add_actions (group, image_actions, G_N_ELEMENTS (image_actions)); + action = gtk_action_group_get_action (GTK_ACTION_GROUP (group), + "image-new-from-image"); + gtk_action_set_accel_path (action, "/image/image-new"); + gimp_action_group_add_enum_actions (group, image_convert_actions, G_N_ELEMENTS (image_convert_actions),