[packages/scim-array] Rel 2
arekm
arekm at pld-linux.org
Mon Apr 6 16:38:25 CEST 2026
commit 51fb72e6e96594b51220c803bb14cd2a5b5218b6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Apr 6 16:38:17 2026 +0200
Rel 2
scim-array-gtk3.patch | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++
scim-array.spec | 4 ++-
2 files changed, 86 insertions(+), 1 deletion(-)
---
diff --git a/scim-array.spec b/scim-array.spec
index 3879ed4..273b6fa 100644
--- a/scim-array.spec
+++ b/scim-array.spec
@@ -3,11 +3,12 @@ Summary(pl.UTF-8): Silnik metody wprowadzania Array 30 dla SCIM
Summary(zh_TW.UTF-8): SCIM 行列 30 輸入法引擎
Name: scim-array
Version: 1.0.1
-Release: 1
+Release: 2
License: GPL v2+
Group: Libraries
Source0: http://of.openfoundry.org/download_path/scimarray/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 689a49455f3c868182aa00310b0e5c29
+Patch0: %{name}-gtk3.patch
URL: http://scimarray.openfoundry.org/
BuildRequires: libstdc++-devel
BuildRequires: pkgconfig
@@ -40,6 +41,7 @@ scim-array 為 SCIM 輸入法框架中完整實作行列 30 輸入法功能的
%prep
%setup -q
+%patch -P0 -p1
%build
%configure
diff --git a/scim-array-gtk3.patch b/scim-array-gtk3.patch
new file mode 100644
index 0000000..9f51fa7
--- /dev/null
+++ b/scim-array-gtk3.patch
@@ -0,0 +1,83 @@
+--- scim-array-1.0.1.orig/src/scim_array_imengine_setup.cpp 2008-05-03 14:47:46.000000000 +0200
++++ scim-array-1.0.1/src/scim_array_imengine_setup.cpp 2026-04-06 12:00:00.000000000 +0200
+@@ -150,12 +150,12 @@
+ gpointer user_data);
+
+ static GtkWidget *
+-create_options_page(GtkTooltips *tooltip);
++create_options_page(void);
+
+
+ // Function implementations.
+ static GtkWidget *
+-create_options_page(GtkTooltips *tooltips)
++create_options_page(void)
+ {
+ GtkWidget *vbox;
+ GtkWidget *button;
+@@ -165,24 +165,24 @@
+
+ button = gtk_check_button_new_with_mnemonic (_("Show Special Code"));
+ gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0);
+- gtk_tooltips_set_tip(tooltips, button,
+- _("To notify if the character has the special code"), NULL);
++ gtk_widget_set_tooltip_text(button,
++ _("To notify if the character has the special code"));
+ g_signal_connect(G_OBJECT(button), "toggled",
+ G_CALLBACK(on_default_toggle_button_toggled), NULL);
+ show_special_code_button = button;
+
+ button = gtk_check_button_new_with_mnemonic(_("Only Special Code Input Mode"));
+ gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0);
+- gtk_tooltips_set_tip(tooltips, button,
+- _("If the character has the special code, you will be confined to use it"), NULL);
++ gtk_widget_set_tooltip_text(button,
++ _("If the character has the special code, you will be confined to use it"));
+ g_signal_connect(G_OBJECT(button), "toggled",
+ G_CALLBACK(on_default_toggle_button_toggled), NULL);
+ special_code_only_button = button;
+
+ button = gtk_check_button_new_with_mnemonic(_("Use Phrase Library"));
+ gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0);
+- gtk_tooltips_set_tip(tooltips, button,
+- _("Turn on phrase input mode. (Enable after restart)"), NULL);
++ gtk_widget_set_tooltip_text(button,
++ _("Turn on phrase input mode. (Enable after restart)"));
+ g_signal_connect(G_OBJECT(button), "toggled",
+ G_CALLBACK(on_default_toggle_button_toggled), NULL);
+ phrases_library_button = button;
+@@ -200,7 +200,7 @@
+ GtkWidget *hbox = gtk_hbox_new(FALSE, 12);
+
+ GtkWidget *entry = gtk_entry_new();
+- gtk_entry_set_editable (GTK_ENTRY (entry), FALSE);
++ gtk_editable_set_editable (GTK_EDITABLE (entry), FALSE);
+ gtk_entry_set_text (GTK_ENTRY (entry), "");
+ gtk_box_pack_start(GTK_BOX(hbox), entry, FALSE, TRUE, 0);
+ g_signal_connect(G_OBJECT(entry), "changed",
+@@ -224,7 +224,7 @@
+ hbox = gtk_hbox_new(FALSE, 12);
+
+ entry = gtk_entry_new();
+- gtk_entry_set_editable (GTK_ENTRY (entry), FALSE);
++ gtk_editable_set_editable (GTK_EDITABLE (entry), FALSE);
+ gtk_entry_set_text (GTK_ENTRY (entry), "");
+ gtk_box_pack_start(GTK_BOX(hbox), entry, FALSE, TRUE, 0);
+ g_signal_connect(G_OBJECT(entry), "changed",
+@@ -248,15 +248,12 @@
+ GtkWidget *notebook;
+ GtkWidget *label;
+ GtkWidget *page;
+- GtkTooltips *tooltips;
+-
+- tooltips = gtk_tooltips_new ();
+
+ // Create the Notebook.
+ notebook = gtk_notebook_new ();
+
+ // Create the first page.
+- page = create_options_page(tooltips);
++ page = create_options_page();
+ label = gtk_label_new (_("Options"));
+ gtk_notebook_append_page (GTK_NOTEBOOK (notebook), page, label);
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/scim-array.git/commitdiff/51fb72e6e96594b51220c803bb14cd2a5b5218b6
More information about the pld-cvs-commit
mailing list