Osamu Aoki <os...@debian.org> writes:

>> 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);
>
> The above line did not exist in the current source.  Thus this patch did
> not apply cleanly.  I kept this line by adding it as patch.  (Just to be
> safe side.)  If this above line can be dropped, let me know.

Ah, sorry.  The patch previously attached was based on the git master
since I didn't expected any change in the hunk.  I'm attaching a patch
generated by quilt from the deb package.

BTW, just in case, I have notified this to the upstream on Friday.

Follow IBusProperty ABI change.
--- a/src/IBusChewingEngine-input-events.c
+++ b/src/IBusChewingEngine-input-events.c
@@ -291,12 +291,12 @@
 	/* 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);
--- a/src/IBusChewingEngine.gob
+++ b/src/IBusChewingEngine.gob
@@ -1041,12 +1041,12 @@
 	    /* 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);
Regards,
-- 
Daiki Ueno

Reply via email to