Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2012 08:06:52 +0000 (UTC)
From:      Beat Gaetzi <beat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r302459 - in head/chinese/ibus-chewing: . files
Message-ID:  <201208130806.q7D86qmG009628@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: beat
Date: Mon Aug 13 08:06:52 2012
New Revision: 302459
URL: http://svn.freebsd.org/changeset/ports/302459

Log:
  - Chase ibus update
  
  Reported by:	pointyhat
  Approved by:	maintainer
  Obtained from:	https://bugs.gentoo.org/show_bug.cgi?id=407695

Added:
  head/chinese/ibus-chewing/files/
  head/chinese/ibus-chewing/files/patch-src-IBusChewingEngine-input-events.c   (contents, props changed)
  head/chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob   (contents, props changed)
Modified:
  head/chinese/ibus-chewing/Makefile   (contents, props changed)

Modified: head/chinese/ibus-chewing/Makefile
==============================================================================
--- head/chinese/ibus-chewing/Makefile	Mon Aug 13 06:03:06 2012	(r302458)
+++ head/chinese/ibus-chewing/Makefile	Mon Aug 13 08:06:52 2012	(r302459)
@@ -7,7 +7,7 @@
 
 PORTNAME=	ibus-chewing
 PORTVERSION=	1.3.10
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	chinese
 MASTER_SITES=	GOOGLE_CODE
 DISTNAME=	${PORTNAME}-${PORTVERSION}-Source

Added: head/chinese/ibus-chewing/files/patch-src-IBusChewingEngine-input-events.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/ibus-chewing/files/patch-src-IBusChewingEngine-input-events.c	Mon Aug 13 08:06:52 2012	(r302459)
@@ -0,0 +1,27 @@
+http://bugs.gentoo.org/407695
+
+--- src/IBusChewingEngine-input-events.c
++++ src/IBusChewingEngine-input-events.c
+@@ -291,12 +291,21 @@
+ 	/* 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)
++	if (ibus_property_get_state(self->settings_prop)==PROP_STATE_UNCHECKED)
++#else
++	if (self->settings_prop->state==PROP_STATE_UNCHECKED)
++#endif
++	{
+ 	    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);

Added: head/chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob	Mon Aug 13 08:06:52 2012	(r302459)
@@ -0,0 +1,27 @@
+http://bugs.gentoo.org/407695
+
+--- src/IBusChewingEngine.gob
++++ src/IBusChewingEngine.gob
+@@ -1041,12 +1041,21 @@
+ 	    /* 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)
++		if (ibus_property_get_state(self->settings_prop)==PROP_STATE_UNCHECKED)
++#else
++	    if (self->settings_prop->state==PROP_STATE_UNCHECKED)
++#endif
++		{
+ 		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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208130806.q7D86qmG009628>