diff --git a/pkgs/gimp.nix b/pkgs/gimp/default.nix similarity index 99% rename from pkgs/gimp.nix rename to pkgs/gimp/default.nix index b50ffde..cc42235 100644 --- a/pkgs/gimp.nix +++ b/pkgs/gimp/default.nix @@ -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"; hash = "sha256-8jqQmfbOARMPNIsBfNKpMIeK4dXoAme7rUJeQZwh4PM="; }) + ./floating-paste.patch ]; nativeBuildInputs = [ meson diff --git a/pkgs/gimp/floating-paste.patch b/pkgs/gimp/floating-paste.patch new file mode 100644 index 0000000..6366e22 --- /dev/null +++ b/pkgs/gimp/floating-paste.patch @@ -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, { "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, { "V", "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,