diff options
author | Sergey Udaltsov <svu@gnome.org> | 2007-05-20 00:11:41 +0000 |
---|---|---|
committer | Sergey Udaltsov <svu@gnome.org> | 2007-05-20 00:11:41 +0000 |
commit | f918651956eabc3dbb81834bbecb5fd8f4eaa3ec (patch) | |
tree | e14dbd8b1935bf6772f053bbaa3fc5b417c64aec /tests | |
parent | 7c3cb72b2b225053a4a45254cb85fafe631f1cb2 (diff) | |
download | libxklavier-f918651956eabc3dbb81834bbecb5fd8f4eaa3ec.tar.gz |
added missing indicator names function
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_monitor.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_monitor.c b/tests/test_monitor.c index 7130523..33f4f8f 100644 --- a/tests/test_monitor.c +++ b/tests/test_monitor.c @@ -105,6 +105,7 @@ main(int argc, char *argv[]) if (engine != NULL) { XklConfigRec *current_config; XklConfigRegistry *config; + const gchar** names; xkl_debug(0, "Xklavier initialized\n"); config = xkl_config_registry_get_instance(engine); @@ -114,6 +115,14 @@ main(int argc, char *argv[]) current_config = xkl_config_rec_new(); xkl_config_rec_get_from_server(current_config, engine); + names = xkl_engine_get_groups_names(engine); + while (names != NULL && *names != NULL && **names != 0) + xkl_debug(0,"Group: [%s]\n", *names++); + + names = xkl_engine_get_indicators_names(engine); + while (names != NULL && *names != NULL && **names != 0) + xkl_debug(0,"Indicator: [%s]\n", *names++); + g_signal_connect(engine, "X-state-changed", G_CALLBACK(state_changed), NULL); |