1 diff -Naur ibus-hangul-1.3.1-orig/configure.ac ibus-hangul-1.3.1/configure.ac
2 --- ibus-hangul-1.3.1-orig/configure.ac 2011-10-02 03:36:02.000000000 -0400
3 +++ ibus-hangul-1.3.1/configure.ac 2011-10-02 03:37:01.000000000 -0400
7 PKG_CHECK_MODULES(IBUS, [
13 diff -Naur ibus-hangul-1.3.1-orig/src/engine.c ibus-hangul-1.3.1/src/engine.c
14 --- ibus-hangul-1.3.1-orig/src/engine.c 2011-10-02 03:36:02.000000000 -0400
15 +++ ibus-hangul-1.3.1/src/engine.c 2011-10-02 03:37:51.000000000 -0400
18 ibus_hangul_init (IBusBus *bus)
21 - GValue value = { 0, };
24 hanja_table = hanja_table_load (NULL);
27 g_object_ref_sink (config);
29 hangul_keyboard = g_string_new_len ("2", 8);
30 - res = ibus_config_get_value (config, "engine/Hangul",
31 - "HangulKeyboard", &value);
33 - const gchar* str = g_value_get_string (&value);
34 + value = ibus_config_get_value (config, "engine/Hangul",
36 + if (value != NULL) {
37 + const gchar* str = g_variant_get_string (value, NULL);
38 g_string_assign (hangul_keyboard, str);
39 - g_value_unset(&value);
40 + g_variant_unref(value);
43 hanja_key_list_init(&hanja_keys);
45 - res = ibus_config_get_value (config, "engine/Hangul",
46 - "HanjaKeys", &value);
48 - const gchar* str = g_value_get_string (&value);
49 + value = ibus_config_get_value (config, "engine/Hangul",
51 + if (value != NULL) {
52 + const gchar* str = g_variant_get_string (value, NULL);
53 hanja_key_list_set_from_string(&hanja_keys, str);
54 - g_value_unset(&value);
55 + g_variant_unref(value);
57 hanja_key_list_append(&hanja_keys, IBUS_Hangul_Hanja, 0);
58 hanja_key_list_append(&hanja_keys, IBUS_F9, 0);