diff options
author | beat <beat@FreeBSD.org> | 2012-08-13 16:06:52 +0800 |
---|---|---|
committer | beat <beat@FreeBSD.org> | 2012-08-13 16:06:52 +0800 |
commit | 6c8908c77627686040ce24324127041d497c4e65 (patch) | |
tree | 635d09f24ba88967ce52e11f9328902c57c5ba2c /chinese | |
parent | 44d4d145588c1321977867ad00865624dfbd28af (diff) | |
download | freebsd-ports-gnome-6c8908c77627686040ce24324127041d497c4e65.tar.gz freebsd-ports-gnome-6c8908c77627686040ce24324127041d497c4e65.tar.zst freebsd-ports-gnome-6c8908c77627686040ce24324127041d497c4e65.zip |
- Chase ibus update
Reported by: pointyhat
Approved by: maintainer
Obtained from: https://bugs.gentoo.org/show_bug.cgi?id=407695
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/ibus-chewing/Makefile | 2 | ||||
-rw-r--r-- | chinese/ibus-chewing/files/patch-src-IBusChewingEngine-input-events.c | 27 | ||||
-rw-r--r-- | chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob | 27 |
3 files changed, 55 insertions, 1 deletions
diff --git a/chinese/ibus-chewing/Makefile b/chinese/ibus-chewing/Makefile index 2b8938b86d70..17b8223e2272 100644 --- a/chinese/ibus-chewing/Makefile +++ b/chinese/ibus-chewing/Makefile @@ -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 diff --git a/chinese/ibus-chewing/files/patch-src-IBusChewingEngine-input-events.c b/chinese/ibus-chewing/files/patch-src-IBusChewingEngine-input-events.c new file mode 100644 index 000000000000..fcf52658a6dc --- /dev/null +++ b/chinese/ibus-chewing/files/patch-src-IBusChewingEngine-input-events.c @@ -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); diff --git a/chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob b/chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob new file mode 100644 index 000000000000..f2d4f777afd9 --- /dev/null +++ b/chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob @@ -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); |