1 |
commit: d46211d53b0a5634ce6f61807fa53e06d776252b |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 14 12:44:51 2021 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 14 12:44:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46211d5 |
7 |
|
8 |
app-i18n/ibus-handwrite: fix build with Clang |
9 |
|
10 |
Closes: https://bugs.gentoo.org/734216 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org> |
13 |
|
14 |
.../files/ibus-handwrite-nested-function.patch | 26 ++++++++++++++++++++++ |
15 |
.../ibus-handwrite/ibus-handwrite-3.0.0-r1.ebuild | 1 + |
16 |
2 files changed, 27 insertions(+) |
17 |
|
18 |
diff --git a/app-i18n/ibus-handwrite/files/ibus-handwrite-nested-function.patch b/app-i18n/ibus-handwrite/files/ibus-handwrite-nested-function.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..96cbc118fa4 |
21 |
--- /dev/null |
22 |
+++ b/app-i18n/ibus-handwrite/files/ibus-handwrite-nested-function.patch |
23 |
@@ -0,0 +1,26 @@ |
24 |
+--- a/src/UI_gtk.c |
25 |
++++ b/src/UI_gtk.c |
26 |
+@@ -74,6 +74,11 @@ |
27 |
+ return TRUE; |
28 |
+ } |
29 |
+ |
30 |
++static void clicked(GtkButton *button, IBusHandwriteEngine *engine) |
31 |
++{ |
32 |
++ ibus_handwrite_engine_commit_text(engine,GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button),"order"))); |
33 |
++} |
34 |
++ |
35 |
+ static void regen_loopuptable(GtkWidget * widget, IBusHandwriteEngine * engine) |
36 |
+ { |
37 |
+ int i; |
38 |
+@@ -98,11 +103,6 @@ |
39 |
+ |
40 |
+ gtk_widget_show(bt); |
41 |
+ |
42 |
+- void clicked(GtkButton *button, IBusHandwriteEngine *engine) |
43 |
+- { |
44 |
+- ibus_handwrite_engine_commit_text(engine,GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button),"order"))); |
45 |
+- } |
46 |
+- |
47 |
+ g_object_set_data(G_OBJECT(bt),"order",GINT_TO_POINTER(i)); |
48 |
+ g_signal_connect(bt,"clicked",G_CALLBACK(clicked),engine); |
49 |
+ |
50 |
|
51 |
diff --git a/app-i18n/ibus-handwrite/ibus-handwrite-3.0.0-r1.ebuild b/app-i18n/ibus-handwrite/ibus-handwrite-3.0.0-r1.ebuild |
52 |
index a57383c4952..ffbab323476 100644 |
53 |
--- a/app-i18n/ibus-handwrite/ibus-handwrite-3.0.0-r1.ebuild |
54 |
+++ b/app-i18n/ibus-handwrite/ibus-handwrite-3.0.0-r1.ebuild |
55 |
@@ -26,6 +26,7 @@ BDEPEND="virtual/pkgconfig |
56 |
PATCHES=( |
57 |
"${FILESDIR}"/${PN}-blink.patch |
58 |
"${FILESDIR}"/${PN}-headers.patch |
59 |
+ "${FILESDIR}"/${PN}-nested-function.patch |
60 |
) |
61 |
|
62 |
src_configure() { |