mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
5dd652faba
commit
8386ca04a1
16
ChangeLog
16
ChangeLog
|
@ -1,7 +1,19 @@
|
|||
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>
|
||||
|
|
Loading…
Reference in New Issue