Commit 5a48eb3c authored by Mathieu Bridon's avatar Mathieu Bridon

Simplify some code

If we're using the overridden constructor from 1.5, we might as well use
it completely, as it creates the IBus.Text for us.
parent 9fd4cf74
......@@ -74,8 +74,7 @@ class Engine(IBus.Engine):
# Try the new constructor from IBus >= 1.5
prop = IBus.Property(key=key,
prop_type=IBus.PropType.TOGGLE,
label=IBus.Text.new_from_string(p["label"]),
symbol=IBus.Text.new_from_string(""),
label=p["label"],
icon='',
sensitive=True,
visible=True,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment