public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-i18n/ibus-handwrite/, app-i18n/ibus-handwrite/files/
@ 2021-10-14 12:45 Akinori Hattori
  0 siblings, 0 replies; only message in thread
From: Akinori Hattori @ 2021-10-14 12:45 UTC (permalink / raw
  To: gentoo-commits

commit:     d46211d53b0a5634ce6f61807fa53e06d776252b
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 14 12:44:51 2021 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Thu Oct 14 12:44:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46211d5

app-i18n/ibus-handwrite: fix build with Clang

Closes: https://bugs.gentoo.org/734216
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 .../files/ibus-handwrite-nested-function.patch     | 26 ++++++++++++++++++++++
 .../ibus-handwrite/ibus-handwrite-3.0.0-r1.ebuild  |  1 +
 2 files changed, 27 insertions(+)

diff --git a/app-i18n/ibus-handwrite/files/ibus-handwrite-nested-function.patch b/app-i18n/ibus-handwrite/files/ibus-handwrite-nested-function.patch
new file mode 100644
index 00000000000..96cbc118fa4
--- /dev/null
+++ b/app-i18n/ibus-handwrite/files/ibus-handwrite-nested-function.patch
@@ -0,0 +1,26 @@
+--- a/src/UI_gtk.c
++++ b/src/UI_gtk.c
+@@ -74,6 +74,11 @@
+ 	return TRUE;
+ }
+ 
++static void clicked(GtkButton *button, IBusHandwriteEngine *engine)
++{
++    ibus_handwrite_engine_commit_text(engine,GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button),"order")));
++}
++
+ static void regen_loopuptable(GtkWidget * widget, IBusHandwriteEngine * engine)
+ {
+ 	int i;
+@@ -98,11 +103,6 @@
+ 
+ 		gtk_widget_show(bt);
+ 
+-		void clicked(GtkButton *button, IBusHandwriteEngine *engine)
+-		{
+-			ibus_handwrite_engine_commit_text(engine,GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button),"order")));
+-		}
+-
+ 		g_object_set_data(G_OBJECT(bt),"order",GINT_TO_POINTER(i));
+ 		g_signal_connect(bt,"clicked",G_CALLBACK(clicked),engine);
+ 

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
index a57383c4952..ffbab323476 100644
--- a/app-i18n/ibus-handwrite/ibus-handwrite-3.0.0-r1.ebuild
+++ b/app-i18n/ibus-handwrite/ibus-handwrite-3.0.0-r1.ebuild
@@ -26,6 +26,7 @@ BDEPEND="virtual/pkgconfig
 PATCHES=(
 	"${FILESDIR}"/${PN}-blink.patch
 	"${FILESDIR}"/${PN}-headers.patch
+	"${FILESDIR}"/${PN}-nested-function.patch
 )
 
 src_configure() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-14 12:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-14 12:45 [gentoo-commits] repo/gentoo:master commit in: app-i18n/ibus-handwrite/, app-i18n/ibus-handwrite/files/ Akinori Hattori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox