From 606eab00d04f298a98a8c9e468b1cd19d7faec48 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sun, 13 Mar 2022 22:27:16 -0500 Subject: klavaro: patch to use non-deprecated names for icons Started just wanting to fix the "gtk-strikethrough" icon, but kept finding items marked deprecated. This change may be incomplete, but all changes were to deprecated icons (that used to be "stock", I think). Icon name candidates were identified by extracting all used icon-name values and checking which existed in my system's copy of the 'breeze' theme. If missing, these were checked online to find the new replacement. (I couldn't find an authoritative list of the replacements, but looking each up finds the right deprecation warning) --- pkgs/games/klavaro/default.nix | 2 +- pkgs/games/klavaro/icons.patch | 137 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 pkgs/games/klavaro/icons.patch (limited to 'pkgs/games') diff --git a/pkgs/games/klavaro/default.nix b/pkgs/games/klavaro/default.nix index ec00b8308de7..6ea029176482 100644 --- a/pkgs/games/klavaro/default.nix +++ b/pkgs/games/klavaro/default.nix @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { substituteInPlace src/tutor.c --replace '"espeak ' '"${espeak}/bin/espeak ' ''; - patches = [ ./trans_lang_get_similar.patch ]; + patches = [ ./icons.patch ./trans_lang_get_similar.patch ]; postInstall = '' wrapProgram $out/bin/klavaro \ diff --git a/pkgs/games/klavaro/icons.patch b/pkgs/games/klavaro/icons.patch new file mode 100644 index 000000000000..750a899d23d6 --- /dev/null +++ b/pkgs/games/klavaro/icons.patch @@ -0,0 +1,137 @@ +--- a/data/klavaro.glade (revision 137) ++++ b/data/klavaro.glade (working copy) +@@ -311,7 +311,7 @@ + + True + False +- gtk-delete ++ edit-delete + + + False +@@ -1232,7 +1232,7 @@ + + True + False +- gtk-delete ++ edit-delete + + + False +@@ -1352,7 +1352,7 @@ + + True + False +- gtk-open ++ document-open + + + True +@@ -1510,7 +1510,7 @@ + + True + False +- gtk-open ++ document-open + 2 + + +@@ -1557,7 +1557,7 @@ + + True + False +- gtk-paste ++ edit-paste + 2 + + +@@ -1604,7 +1604,7 @@ + + True + False +- gtk-delete ++ edit-delete + 2 + + +@@ -2051,7 +2051,7 @@ + + True + False +- gtk-delete ++ edit-delete + + + False +@@ -2343,7 +2343,7 @@ + + True + False +- gtk-media-rewind ++ media-seek-backward + 1 + + +@@ -2418,7 +2418,7 @@ + + True + False +- gtk-go-back ++ go-previous + + + False +@@ -2469,7 +2469,7 @@ + + True + False +- gtk-go-forward ++ go-next + + + False +@@ -2577,7 +2577,7 @@ + + True + False +- gtk-save ++ document-save + + + False +@@ -2825,7 +2825,7 @@ + + True + False +- gtk-strikethrough ++ format-text-strikethrough + 6 + + +@@ -2901,7 +2901,7 @@ + + True + False +- gtk-bold ++ format-text-bold + 6 + + +@@ -3630,7 +3630,7 @@ + + True + False +- gtk-goto-top ++ go-top + + + False +@@ -3678,7 +3678,7 @@ + + True + False +- gtk-goto-bottom ++ go-bottom + + + False -- cgit 1.4.1