aboutsummaryrefslogtreecommitdiff
path: root/chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob')
-rw-r--r--chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob27
1 files changed, 27 insertions, 0 deletions
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);