updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / ibus-hangul-3beol / ibus-1.4.0.patch
blob57604b30ff1e3bf96b8ded20e9b56d6ef2d3b8ec
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
4 @@ -52,7 +52,7 @@
6 # check ibus
7 PKG_CHECK_MODULES(IBUS, [
8 - ibus-1.0 >= 1.2.99
9 + ibus-1.0 >= 1.3.99
12 # check libhangul
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
16 @@ -175,8 +194,7 @@
17 void
18 ibus_hangul_init (IBusBus *bus)
20 - gboolean res;
21 - GValue value = { 0, };
22 + GVariant* value;
24 hanja_table = hanja_table_load (NULL);
26 @@ -187,22 +205,22 @@
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);
32 - if (res) {
33 - const gchar* str = g_value_get_string (&value);
34 + value = ibus_config_get_value (config, "engine/Hangul",
35 + "HangulKeyboard");
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);
47 - if (res) {
48 - const gchar* str = g_value_get_string (&value);
49 + value = ibus_config_get_value (config, "engine/Hangul",
50 + "HanjaKeys");
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);
56 } else {
57 hanja_key_list_append(&hanja_keys, IBUS_Hangul_Hanja, 0);
58 hanja_key_list_append(&hanja_keys, IBUS_F9, 0);