Commit 8386ca04 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

Allow to paste a new image using Ctrl-V (bug 169477):

2005-05-21  Sven Neumann  <sven@gimp.org>

	Allow to paste a new image using Ctrl-V (bug 169477):

	* menus/toolbox-menu.xml.in: added an accelerator for "edit-paste".

	* app/actions/edit-actions.c: keep "edit-paste" always enabled,
	even if no image is present.

	* app/actions/edit-commands.c (edit_paste_cmd_callback): forward
	to "edit-paste-as-new" if we are being called from the toolbox.
parent 5dd652fa
2005-05-21 Sven Neumann <sven@gimp.org>
* app/widgets/gimpuimanager.c: improved reporting of errors
while parsing the menu definitions.
Allow to paste a new image using Ctrl-V (bug 169477):
* menus/toolbox-menu.xml.in: added an accelerator for "edit-paste".
* app/actions/edit-actions.c: keep "edit-paste" always enabled,
even if no image is present.
* app/actions/edit-commands.c (edit_paste_cmd_callback): forward
to "edit-paste-as-new" if we are being called from the toolbox.
2005-05-21 Sven Neumann <sven@gimp.org>
* app/widgets/gimpuimanager.c: improved reporting of errors while
parsing the menu definitions.
2005-05-21 Sven Neumann <sven@gimp.org>
......
......@@ -240,7 +240,7 @@ edit_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("edit-cut", drawable);
SET_SENSITIVE ("edit-copy", drawable);
SET_SENSITIVE ("edit-copy-visible", gimage);
SET_SENSITIVE ("edit-paste", gimage);
/* "edit-paste" is always enabled */
SET_SENSITIVE ("edit-paste-into", gimage);
SET_SENSITIVE ("edit-named-cut", drawable);
......
......@@ -189,10 +189,12 @@ void
edit_paste_cmd_callback (GtkAction *action,
gpointer data)
{
GimpDisplay *gdisp;
return_if_no_display (gdisp, data);
GimpDisplay *gdisp = action_data_get_display (data);
edit_paste (gdisp, FALSE);
if (gdisp)
edit_paste (gdisp, FALSE);
else
edit_paste_as_new_cmd_callback (action, data);
}
void
......
......@@ -62,4 +62,6 @@
</menubar>
<accelerator action="edit-paste"/>
</ui>
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