From b0ee2514b9c9de86b0d1a5928ec0ad915d3a8ad3 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 11 Jan 2012 09:51:40 +0100 Subject: 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. --- tests/test_gi.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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() -- cgit v1.2.1