Subject: [PATCH 3/7] gnu: fcitx5-gtk: Update to 5.0.19.

From: dan <[email-masked]>
Date: Mon, 7 Nov 2022 04:46:35 +0800

* gnu/packages/fcitx5.scm (fcitx5-gtk): Update to 5.0.19.
* gnu/packages/fcitx5.scm (fcitx5-gtk4) [phases]: Make
gtk4/gtk4inputwindow.cpp properly find fcitxtheme.h.
---
 gnu/packages/fcitx5.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/fcitx5.scm b/gnu/packages/fcitx5.scm
index 634c0395c4..3bc0636fb8 100644
--- a/gnu/packages/fcitx5.scm
+++ b/gnu/packages/fcitx5.scm
@@ -188,7 +188,7 @@ (define-public libime
 (define-public fcitx5-gtk
   (package
     (name "fcitx5-gtk")
-    (version "5.0.9")
+    (version "5.0.19")
     (source
      (origin
        (method url-fetch)
@@ -196,7 +196,7 @@ (define-public fcitx5-gtk
                            "/fcitx5-gtk/fcitx5-gtk-"
                            version ".tar.xz"))
        (sha256
-        (base32 "07ip4sxf3q895pp7mivv2bdwcmqjnwrmv9pg99jk73cw9bgyq00n"))))
+        (base32 "007ls91jfbs3anvcfbza1pjbbsi7q5nrw7f3nzdbyngsl3nj6k37"))))
     (build-system cmake-build-system)
     (arguments
      (list
@@ -275,6 +275,11 @@ (define-public fcitx5-gtk4
               "-DENABLE_GTK3_IM_MODULE=OFF")
       #:phases
       #~(modify-phases %standard-phases
+          (add-before 'configure 'fix-fcitxtheme-path
+            (lambda _
+              (substitute* "gtk4/gtk4inputwindow.cpp"
+                (("<gtk3/fcitxtheme.h>")
+                 "\"fcitxtheme.h\""))))
           (add-before 'configure 'fix-gclient
             (lambda* (#:key inputs #:allow-other-keys)
               (define gclient
-- 
2.38.0