diff --git a/fcitx-gclient-Export-fcitx_client_enable_ic-fcitx_cl.patch b/fcitx-gclient-Export-fcitx_client_enable_ic-fcitx_cl.patch new file mode 100644 index 0000000..6eb1571 --- /dev/null +++ b/fcitx-gclient-Export-fcitx_client_enable_ic-fcitx_cl.patch @@ -0,0 +1,34 @@ +From 4f49f71a8b2c0852d3dfcd990d0b8bb61b1974c8 Mon Sep 17 00:00:00 2001 +From: Florian Weimer +Date: Thu, 15 Dec 2022 20:09:35 +0100 +Subject: [PATCH] fcitx-gclient: Export fcitx_client_enable_ic, + fcitx_client_close_ic (#521) + +Git-commit: 4f49f71a8b2c0852d3dfcd990d0b8bb61b1974c8 + +These functions are used from fcitx-fbterm. Adding function +prototypes to the installed header file seems to be the cleanest way +to ensure that fcitx-fbterm does not rely on implicit function +declarations (which are likely to result in errors with future +compilers by default). +--- + src/lib/fcitx-gclient/fcitxclient.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/lib/fcitx-gclient/fcitxclient.h b/src/lib/fcitx-gclient/fcitxclient.h +index 52f0c958..8942111c 100644 +--- a/src/lib/fcitx-gclient/fcitxclient.h ++++ b/src/lib/fcitx-gclient/fcitxclient.h +@@ -88,6 +88,9 @@ void fcitx_client_set_capacity(FcitxClient *self, guint flags); + + void fcitx_client_reset(FcitxClient *self); + ++void fcitx_client_enable_ic(FcitxClient *self); ++void fcitx_client_close_ic(FcitxClient *self); ++ + G_END_DECLS + + #endif // CLIENT_IM_H +-- +2.45.1 + diff --git a/fcitx.changes b/fcitx.changes index 9e6b513..7188ba4 100644 --- a/fcitx.changes +++ b/fcitx.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu May 16 19:27:05 UTC 2024 - Michal Suchanek + +- Add missing fcitx_client_close_ic and fcitx_client_enable_ic prototypes: + fcitx-gclient-Export-fcitx_client_enable_ic-fcitx_cl.patch + ------------------------------------------------------------------- Mon Feb 26 08:41:59 UTC 2024 - Dominique Leuenberger diff --git a/fcitx.spec b/fcitx.spec index 78c4b89..53e1479 100644 --- a/fcitx.spec +++ b/fcitx.spec @@ -1,7 +1,7 @@ # # spec file for package fcitx # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -41,6 +41,8 @@ Patch2: fcitx-autostart-check-INPUT_METHOD.patch # PATCH-FIX-OPENSUSE downgrade cmake requirement to 3.1 again Patch3: fcitx-cmake-3.1.patch Patch4: remote-module-use-safe-directory-for-socket-API-sock.patch +# PATCH-FIX-UPSTREAM Add missing function prototypes +Patch5: fcitx-gclient-Export-fcitx_client_enable_ic-fcitx_cl.patch BuildRequires: cairo-devel BuildRequires: cmake BuildRequires: dbus-1-devel