Lines 1-27
Link Here
|
1 |
http://bugs.gentoo.org/407695 |
|
|
2 |
|
3 |
--- src/IBusChewingEngine-input-events.c |
4 |
+++ src/IBusChewingEngine-input-events.c |
5 |
@@ -291,12 +291,21 @@ |
6 |
/* Toggle Full <-> Half */ |
7 |
chewing_set_ShapeMode(self->context, !chewing_get_ShapeMode(self->context)); |
8 |
}else if (strcmp(prop_name,"chewing_settings_prop")==0){ |
9 |
- if (self->settings_prop->state==PROP_STATE_UNCHECKED){ |
10 |
+#if IBUS_CHECK_VERSION(1, 4, 0) |
11 |
+ if (ibus_property_get_state(self->settings_prop)==PROP_STATE_UNCHECKED) |
12 |
+#else |
13 |
+ if (self->settings_prop->state==PROP_STATE_UNCHECKED) |
14 |
+#endif |
15 |
+ { |
16 |
if (gtk_dialog_run(GTK_DIALOG(self->setting_dialog))==GTK_RESPONSE_OK){ |
17 |
self_save_config_all(self); |
18 |
} |
19 |
gtk_widget_hide(self->setting_dialog); |
20 |
+#if IBUS_CHECK_VERSION(1, 4, 0) |
21 |
+ ibus_property_set_state(self->settings_prop,PROP_STATE_UNCHECKED); |
22 |
+#else |
23 |
self->settings_prop->state=PROP_STATE_UNCHECKED; |
24 |
+#endif |
25 |
} |
26 |
}else{ |
27 |
G_DEBUG_MSG(3,"[I3] property_activate(-, %s, %u) not recognized",prop_name, prop_state); |