diff options
author | root <root@rshg054.dnsready.net> | 2011-10-03 23:14:36 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-10-03 23:14:36 +0000 |
commit | 57d05f7209f022aa99a8850aafbeec4cb85c3b5b (patch) | |
tree | 8f6753258e8359d1314356a677cdb32ae94658ab /community/ibus-hangul/ibus-1.4.0.patch | |
parent | ad84169d66d20378d28533c216b73c9a6646d6d7 (diff) |
Mon Oct 3 23:14:36 UTC 2011
Diffstat (limited to 'community/ibus-hangul/ibus-1.4.0.patch')
-rw-r--r-- | community/ibus-hangul/ibus-1.4.0.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/community/ibus-hangul/ibus-1.4.0.patch b/community/ibus-hangul/ibus-1.4.0.patch new file mode 100644 index 000000000..0c043d374 --- /dev/null +++ b/community/ibus-hangul/ibus-1.4.0.patch @@ -0,0 +1,58 @@ +diff -Naur ibus-hangul-1.3.1-orig/configure.ac ibus-hangul-1.3.1/configure.ac +--- ibus-hangul-1.3.1-orig/configure.ac 2011-10-02 03:36:02.000000000 -0400 ++++ ibus-hangul-1.3.1/configure.ac 2011-10-02 03:37:01.000000000 -0400 +@@ -52,7 +52,7 @@ + + # check ibus + PKG_CHECK_MODULES(IBUS, [ +- ibus-1.0 >= 1.2.99 ++ ibus-1.0 >= 1.3.99 + ]) + + # check libhangul +diff -Naur ibus-hangul-1.3.1-orig/src/engine.c ibus-hangul-1.3.1/src/engine.c +--- ibus-hangul-1.3.1-orig/src/engine.c 2011-10-02 03:36:02.000000000 -0400 ++++ ibus-hangul-1.3.1/src/engine.c 2011-10-02 03:37:51.000000000 -0400 +@@ -175,8 +194,7 @@ + void + ibus_hangul_init (IBusBus *bus) + { +- gboolean res; +- GValue value = { 0, }; ++ GVariant* value; + + hanja_table = hanja_table_load (NULL); + +@@ -187,22 +205,22 @@ + g_object_ref_sink (config); + + hangul_keyboard = g_string_new_len ("2", 8); +- res = ibus_config_get_value (config, "engine/Hangul", +- "HangulKeyboard", &value); +- if (res) { +- const gchar* str = g_value_get_string (&value); ++ value = ibus_config_get_value (config, "engine/Hangul", ++ "HangulKeyboard"); ++ if (value != NULL) { ++ const gchar* str = g_variant_get_string (value, NULL); + g_string_assign (hangul_keyboard, str); +- g_value_unset(&value); ++ g_variant_unref(value); + } + + hanja_key_list_init(&hanja_keys); + +- res = ibus_config_get_value (config, "engine/Hangul", +- "HanjaKeys", &value); +- if (res) { +- const gchar* str = g_value_get_string (&value); ++ value = ibus_config_get_value (config, "engine/Hangul", ++ "HanjaKeys"); ++ if (value != NULL) { ++ const gchar* str = g_variant_get_string (value, NULL); + hanja_key_list_set_from_string(&hanja_keys, str); +- g_value_unset(&value); ++ g_variant_unref(value); + } else { + hanja_key_list_append(&hanja_keys, IBUS_Hangul_Hanja, 0); + hanja_key_list_append(&hanja_keys, IBUS_F9, 0); |