Commit c7bf68d2 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

remove "image-new-from-image" action.

2008-03-25  Michael Natterer  <mitch@gimp.org>

	* app/actions/image-actions.c: remove "image-new-from-image"
	action.

	* app/actions/image-commands.[ch]: remove its callback and made
	the "image-new" callback use the current image's dimensions
	instead.

	* menus/image-menu.xml.in: use the "image-new" action.


svn path=/trunk/; revision=25218
parent 90c932f7
2008-03-25 Michael Natterer <mitch@gimp.org>
* app/actions/image-actions.c: remove "image-new-from-image"
action.
* app/actions/image-commands.[ch]: remove its callback and made
the "image-new" callback use the current image's dimensions
instead.
* menus/image-menu.xml.in: use the "image-new" action.
2008-03-25 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
......
......@@ -70,12 +70,6 @@ static const GimpActionEntry image_actions[] =
G_CALLBACK (image_new_cmd_callback),
GIMP_HELP_FILE_NEW },
{ "image-new-from-image", GTK_STOCK_NEW,
N_("_New..."), NULL,
N_("Create a new image"),
G_CALLBACK (image_new_from_image_cmd_callback),
GIMP_HELP_FILE_NEW },
{ "image-resize", GIMP_STOCK_RESIZE,
N_("Can_vas Size..."), NULL,
N_("Adjust the image dimensions"),
......@@ -201,16 +195,10 @@ static const 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, "<Actions>/image/image-new");
gimp_action_group_add_radio_actions (group,
image_convert_actions,
G_N_ELEMENTS (image_convert_actions),
......
......@@ -127,26 +127,6 @@ image_new_cmd_callback (GtkAction *action,
GtkWidget *dialog;
return_if_no_widget (widget, data);
dialog = gimp_dialog_factory_dialog_new (global_dialog_factory,
gtk_widget_get_screen (widget),
"gimp-image-new-dialog", -1, FALSE);
if (dialog)
{
image_new_dialog_set (dialog, NULL, NULL);
gtk_window_present (GTK_WINDOW (dialog));
}
}
void
image_new_from_image_cmd_callback (GtkAction *action,
gpointer data)
{
GtkWidget *widget;
GtkWidget *dialog;
return_if_no_widget (widget, data);
dialog = gimp_dialog_factory_dialog_new (global_dialog_factory,
gtk_widget_get_screen (widget),
"gimp-image-new-dialog", -1, FALSE);
......
......@@ -22,8 +22,6 @@
void image_new_cmd_callback (GtkAction *action,
gpointer data);
void image_new_from_image_cmd_callback (GtkAction *action,
gpointer data);
void image_convert_cmd_callback (GtkAction *action,
GtkAction *current,
......
......@@ -6,7 +6,7 @@
<menu action="file-menu" name="File">
<placeholder name="New">
<menuitem action="image-new-from-image" />
<menuitem action="image-new" />
</placeholder>
<placeholder name="Open">
<menuitem action="file-open" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment