[ibus-chewing] Rebuilt for ibus 1.4.99.20120304

Takao Fujiwara fujiwara at fedoraproject.org
Wed Mar 7 10:10:35 UTC 2012


commit fa387da4bfc7854062a31de94c5ed57b3c077921
Author: Takao Fujiwara <tfujiwar at redhat.com>
Date:   Wed Mar 7 18:44:15 2012 +0900

    Rebuilt for ibus 1.4.99.20120304

 ibus-chewing-xx-build-error.patch |   50 +++++++++++++++++++++++++++++++++++++
 ibus-chewing.spec                 |    8 +++++-
 2 files changed, 57 insertions(+), 1 deletions(-)
---
diff --git a/ibus-chewing-xx-build-error.patch b/ibus-chewing-xx-build-error.patch
new file mode 100644
index 0000000..9447e10
--- /dev/null
+++ b/ibus-chewing-xx-build-error.patch
@@ -0,0 +1,50 @@
+--- ibus-chewing-1.3.10-Source/src/IBusChewingEngine-input-events.c.orig	2012-03-07 18:21:55.124485250 +0900
++++ ibus-chewing-1.3.10-Source/src/IBusChewingEngine-input-events.c	2012-03-07 18:30:42.058201534 +0900
+@@ -291,12 +291,21 @@ void ibus_chewing_engine_property_activa
+ 	/* Toggle Full <-> Half */
+ 	chewing_set_ShapeMode(self->context, !chewing_get_ShapeMode(self->context));
+     }else if (strcmp(prop_name,"chewing_settings_prop")==0){
+-	if (self->settings_prop->state==PROP_STATE_UNCHECKED){
++#if IBUS_CHECK_VERSION (1, 4, 0)
++	int state = ibus_property_get_state(self->settings_prop);
++#else
++	int state = self->settings_prop->state;
++#endif
++	if (state==PROP_STATE_UNCHECKED){
+ 	    if (gtk_dialog_run(GTK_DIALOG(self->setting_dialog))==GTK_RESPONSE_OK){
+ 		self_save_config_all(self);
+ 	    }
+ 	    gtk_widget_hide(self->setting_dialog);
++#if IBUS_CHECK_VERSION (1, 4, 0)
++	    ibus_property_set_state(self->settings_prop, PROP_STATE_UNCHECKED);
++#else
+ 	    self->settings_prop->state=PROP_STATE_UNCHECKED;
++#endif
+ 	}
+     }else{
+ 	G_DEBUG_MSG(3,"[I3]  property_activate(-, %s, %u) not recognized",prop_name, prop_state);
+--- ibus-chewing-1.3.10-Source/src/IBusChewingEngine.gob.orig	2012-03-07 17:52:38.952134004 +0900
++++ ibus-chewing-1.3.10-Source/src/IBusChewingEngine.gob	2012-03-07 18:29:27.075818912 +0900
+@@ -1041,12 +1041,21 @@ class IBus:Chewing:Engine from IBus:Engi
+ 	    /* Toggle Full <-> Half */
+ 	    chewing_set_ShapeMode(self->context, !chewing_get_ShapeMode(self->context));
+ 	}else if (strcmp(prop_name,"chewing_settings_prop")==0){
+-	    if (self->settings_prop->state==PROP_STATE_UNCHECKED){
++#if IBUS_COMPAT_VERSION >= 10400
++	    int state=ibus_property_get_state(self->settings_prop);
++#else
++	    int state=self->settings_prop->state;
++#endif
++	    if (state==PROP_STATE_UNCHECKED){
+ 		if (gtk_dialog_run(GTK_DIALOG(self->setting_dialog))==GTK_RESPONSE_OK){
+ 		    self_save_config_all(self);
+ 		}
+ 		gtk_widget_hide(self->setting_dialog);
++#if IBUS_COMPAT_VERSION >= 10400
++		ibus_property_set_state(self->settings_prop, PROP_STATE_UNCHECKED);
++#else
+ 		self->settings_prop->state=PROP_STATE_UNCHECKED;
++#endif
+ 	    }
+ 	}else{
+ 	    G_DEBUG_MSG(3,"[I3]  property_activate(-, %s, %u) not recognized",prop_name, prop_state);
diff --git a/ibus-chewing.spec b/ibus-chewing.spec
index 25258e7..88dfb51 100644
--- a/ibus-chewing.spec
+++ b/ibus-chewing.spec
@@ -1,6 +1,6 @@
 Name:       ibus-chewing
 Version:    1.3.10
-Release:    2%{?dist}
+Release:    3%{?dist}
 Summary:    The Chewing engine for IBus input platform
 Summary(zh_TW): IBus新酷音輸入法
 License:    GPLv2+
@@ -19,6 +19,7 @@ BuildRequires:  cmake-fedora >= 0.8.1
 %else
 Source1:    https://fedorahosted.org/releases/c/m/cmake-fedora/cmake-fedora-0.8.1-modules-only.tar.gz
 %endif
+Patch1:     ibus-chewing-xx-build-error.patch
 
 
 # Make sure gob2 is patched against https://bugzilla.redhat.com/show_bug.cgi?id=519108
@@ -55,6 +56,7 @@ IBus-chewing 是新酷音輸入法的IBus前端。
 
 %prep
 %setup -q -n %{name}-%{version}-Source
+%patch1 -p1 -b .build
 
 # RHEL does not have cmake-fedora yet
 %if 0%{?fedora} < 13
@@ -118,6 +120,10 @@ fi
 %config(noreplace) %{_sysconfdir}/gconf/schemas/%{name}.schemas
 
 %changelog
+* Wed Mar 07 2012 Takao Fujiwara <tfujiwar at redhat.com> - 1.3.10-3
+- Rebuilt for ibus 1.4.99.20120304
+- Added ibus-chewing-xx-build-error.patch
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.10-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list