diff options
author | Sergey Udaltsov <svu@gnome.org> | 2008-04-15 20:53:37 +0000 |
---|---|---|
committer | Sergey Udaltsov <svu@gnome.org> | 2008-04-15 20:53:37 +0000 |
commit | c2c6316f2f23e87f6f1d7335ac12dbbb16a404a2 (patch) | |
tree | 1308b2cc19c68adfea31bf87e2ab48997a619605 /tests | |
parent | 3be5407e80f5cf3994af63f2f0478c4bb46a9484 (diff) | |
download | libxklavier-c2c6316f2f23e87f6f1d7335ac12dbbb16a404a2.tar.gz |
processing language lists
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_config.c b/tests/test_config.c index 76bc42f..2ef07b7 100644 --- a/tests/test_config.c +++ b/tests/test_config.c @@ -97,6 +97,8 @@ print_xci(XklConfigRegistry * config, const XklConfigItem * item, { gchar **countries = (gchar **) g_object_get_data(G_OBJECT(item), XCI_PROP_COUNTRY_LIST); + gchar **languages = (gchar **) g_object_get_data(G_OBJECT(item), + XCI_PROP_LANGUAGE_LIST); gint i; printf("%*s[%s][%s][%s]\n", indent, "", item->name, item->description, item->short_description); @@ -104,6 +106,10 @@ print_xci(XklConfigRegistry * config, const XklConfigItem * item, for (i = 0; i < g_strv_length(countries); i++) printf("%*s country: [%s]\n", indent, "", countries[i]); + if (languages != NULL) + for (i = 0; i < g_strv_length(languages); i++) + printf("%*s language: [%s]\n", indent, "", + languages[i]); } static void |