summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2012-01-11 09:51:40 +0100
committerSergey V. Udaltsov <svu@gnome.org>2012-01-11 22:09:03 +0000
commitb0ee2514b9c9de86b0d1a5928ec0ad915d3a8ad3 (patch)
treefea9898165d4321692879573ea9d6d6b344dc719 /tests
parent9a7d915fec214494e796bcd54565ce9398354461 (diff)
downloadlibxklavier-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-xtests/test_gi.py2
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()