Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate IBusConfig to GSettings #56

Merged
merged 1 commit into from
May 7, 2018

Conversation

fujiwarat
Copy link

IBus plans to deprecate IBusConfig and suggests to migrate to GSettings.
https://groups.google.com/forum/#!topic/ibus-devel/Mu1IoFX-bKE

#51

src/engine.c Outdated
if (value != NULL) {
const gchar* str = g_variant_get_string (value, NULL);
hotkey_list_set_from_string(&switch_keys, str);
g_variant_unref(value);
} else {
hotkey_list_append(&switch_keys, IBUS_Hangul, 0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer handling the unpredictable error here.
Switch keys are quite important.

src/engine.c Outdated
if (value != NULL) {
const gchar* str = g_variant_get_string (value, NULL);
hotkey_list_set_from_string(&hanja_keys, str);
g_variant_unref(value);
} else {
hotkey_list_append(&hanja_keys, IBUS_Hangul_Hanja, 0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

IBus plans to deprecate IBusConfig and suggests to migrate to GSettings.
https://groups.google.com/forum/#!topic/ibus-devel/Mu1IoFX-bKE

libhangul#51
@fujiwarat
Copy link
Author

Updated the patch to follow your suggestion.
However I think it's better to call g_assert() instead of handling the errors but it's up to you.
Also you can modify my change after the patch is integrated.

@choehwanjin choehwanjin merged commit 40cb396 into libhangul:master May 7, 2018
@choehwanjin
Copy link
Member

Thank you.

@fujiwarat
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants