tags 661618 + patch thanks Moritz Muehlenhoff <muehlenh...@univention.de> writes:
> /home/jmm/3/ibus-chewing-1.3.10+clean/src/IBusChewingEngine-input-events.c:294:25: > error: 'IBusProperty' has no member named 'state' It seems that the field was removed by the commit: https://github.com/ibus/ibus/commit/ee9c4fba
>From 7031399a1af50ad4ed5e970b02a0803f64e4b46a Mon Sep 17 00:00:00 2001 From: Daiki Ueno <u...@unixuser.org> Date: Fri, 2 Mar 2012 12:45:38 +0900 Subject: [PATCH] Don't access removed fields in IBusProperty. See https://github.com/ibus/ibus/commit/ee9c4fba. Use ibus_property_{get,set}_state(). --- src/IBusChewingEngine-input-events.c | 4 ++-- src/IBusChewingEngine.gob | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/IBusChewingEngine-input-events.c b/src/IBusChewingEngine-input-events.c index 84a1d6f..90241d9 100644 --- a/src/IBusChewingEngine-input-events.c +++ b/src/IBusChewingEngine-input-events.c @@ -291,12 +291,12 @@ void ibus_chewing_engine_property_activate(IBusEngine *engine, const gchar *pro /* 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_property_get_state(self->settings_prop)==PROP_STATE_UNCHECKED){ if (gtk_dialog_run(GTK_DIALOG(self->setting_dialog))==GTK_RESPONSE_OK){ self_save_config_all(self); } gtk_widget_hide(self->setting_dialog); - self->settings_prop->state=PROP_STATE_UNCHECKED; + ibus_property_set_state(self->settings_prop, PROP_STATE_UNCHECKED); } }else{ G_DEBUG_MSG(3,"[I3] property_activate(-, %s, %u) not recognized",prop_name, prop_state); diff --git a/src/IBusChewingEngine.gob b/src/IBusChewingEngine.gob index 69b13f9..da2c854 100644 --- a/src/IBusChewingEngine.gob +++ b/src/IBusChewingEngine.gob @@ -1041,13 +1041,13 @@ class IBus:Chewing:Engine from IBus:Engine{ /* 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_property_get_state(self->settings_prop)==PROP_STATE_UNCHECKED){ gtk_widget_show_all(self->setting_dialog); if (gtk_dialog_run(GTK_DIALOG(self->setting_dialog))==GTK_RESPONSE_OK){ self_save_config_all(self); } gtk_widget_hide(self->setting_dialog); - self->settings_prop->state=PROP_STATE_UNCHECKED; + ibus_property_set_state(self->settings_prop, PROP_STATE_UNCHECKED); } }else{ G_DEBUG_MSG(3,"[I3] property_activate(-, %s, %u) not recognized",prop_name, prop_state); -- 1.7.7.6
Regards, -- Daiki Ueno