- Chase ibus update
Reported by: pointyhat Approved by: maintainer Obtained from: https://bugs.gentoo.org/show_bug.cgi?id=407695
This commit is contained in:
parent
1fb4446b8c
commit
34b23d875b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=302459
@ -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
|
||||
|
@ -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);
|
27
chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob
Normal file
27
chinese/ibus-chewing/files/patch-src-IBusChewingEngine.gob
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user