gimp: fix build

This commit is contained in:
chayleaf 2023-10-10 04:07:13 +07:00
parent 5edb14e665
commit e75c609d44
2 changed files with 22 additions and 0 deletions

View file

@ -63,6 +63,7 @@ in gimp.overrideAttrs (old: rec {
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/86947c8f83a3bd593eefb8e5f433f0d045c3d9a7/pkgs/applications/graphics/gimp/fix-isocodes-paths.patch"; url = "https://raw.githubusercontent.com/NixOS/nixpkgs/86947c8f83a3bd593eefb8e5f433f0d045c3d9a7/pkgs/applications/graphics/gimp/fix-isocodes-paths.patch";
hash = "sha256-8jqQmfbOARMPNIsBfNKpMIeK4dXoAme7rUJeQZwh4PM="; hash = "sha256-8jqQmfbOARMPNIsBfNKpMIeK4dXoAme7rUJeQZwh4PM=";
}) })
./floating-paste.patch
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
meson meson

View file

@ -0,0 +1,21 @@
diff --git a/app/actions/edit-actions.c b/app/actions/edit-actions.c
index 32559ae..98e32fe 100644
--- a/app/actions/edit-actions.c
+++ b/app/actions/edit-actions.c
@@ -156,14 +156,14 @@ static const GimpEnumActionEntry edit_paste_actions[] =
{ "edit-paste", GIMP_ICON_EDIT_PASTE,
NC_("edit-action", "_Paste"), NULL, { "<primary>V", "Paste", NULL },
NC_("edit-action", "Paste the content of the clipboard"),
- GIMP_PASTE_TYPE_NEW_LAYER_OR_FLOATING, FALSE,
+ GIMP_PASTE_TYPE_FLOATING, FALSE,
GIMP_HELP_EDIT_PASTE },
{ "edit-paste-in-place", GIMP_ICON_EDIT_PASTE,
NC_("edit-action", "Paste In P_lace"), NULL, { "<primary><alt>V", "<alt>Paste", NULL },
NC_("edit-action",
"Paste the content of the clipboard at its original position"),
- GIMP_PASTE_TYPE_NEW_LAYER_OR_FLOATING_IN_PLACE, FALSE,
+ GIMP_PASTE_TYPE_FLOATING_IN_PLACE, FALSE,
GIMP_HELP_EDIT_PASTE_IN_PLACE },
{ "edit-paste-merged", GIMP_ICON_EDIT_PASTE,