Destroy IBusInputContext correctly in ibus-x11
BUG=none TEST=Linux desktop Review URL: http://codereview.appspot.com/4178062
This commit is contained in:
Родитель
5bd623d697
Коммит
ff5db2e177
|
@ -386,7 +386,7 @@ xim_destroy_ic (XIMS xims, IMChangeICStruct *call_data)
|
|||
g_return_val_if_fail (x11ic != NULL, 0);
|
||||
|
||||
if (x11ic->context) {
|
||||
ibus_object_destroy ((IBusObject *)x11ic->context);
|
||||
ibus_proxy_destroy ((IBusProxy *)x11ic->context);
|
||||
g_object_unref (x11ic->context);
|
||||
x11ic->context = NULL;
|
||||
}
|
||||
|
@ -470,7 +470,6 @@ xim_forward_event (XIMS xims, IMForwardEventStruct *call_data)
|
|||
if (event.type == GDK_KEY_RELEASE) {
|
||||
event.state |= IBUS_RELEASE_MASK;
|
||||
}
|
||||
|
||||
retval = ibus_input_context_process_key_event_sync (x11ic->context,
|
||||
event.keyval,
|
||||
event.hardware_keycode - 8,
|
||||
|
@ -534,7 +533,7 @@ _free_ic (gpointer data, gpointer user_data)
|
|||
}
|
||||
|
||||
if (x11ic->context) {
|
||||
ibus_object_destroy ((IBusObject *)x11ic->context);
|
||||
ibus_proxy_destroy ((IBusProxy *)x11ic->context);
|
||||
g_object_unref (x11ic->context);
|
||||
x11ic->context = NULL;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче