diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2012-01-11 09:51:40 +0100 |
---|---|---|
committer | Sergey V. Udaltsov <svu@gnome.org> | 2012-01-11 22:09:03 +0000 |
commit | b0ee2514b9c9de86b0d1a5928ec0ad915d3a8ad3 (patch) | |
tree | fea9898165d4321692879573ea9d6d6b344dc719 /tests | |
parent | 9a7d915fec214494e796bcd54565ce9398354461 (diff) | |
download | libxklavier-b0ee2514b9c9de86b0d1a5928ec0ad915d3a8ad3.tar.gz |
Make xkl_engine_get_current_state() introspectable
Define boxed type for XklState and fix the return type transfer annotation.
Also add a small test to test_gi.py.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_gi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py index 0602fbd..25867f5 100755 --- a/tests/test_gi.py +++ b/tests/test_gi.py @@ -36,6 +36,8 @@ print('indicator names:', engine.get_indicators_names()) print('group names:', engine.get_groups_names()) print('default layout:', engine.get_groups_names()[engine.get_default_group()]) print('features: %X' % engine.get_features()) +st = engine.get_current_state() +print('current state: group: %i, indicators: %u' % (st.group, st.indicators)) # check ConfigItem ctor with data i = Xkl.ConfigItem() |