From 438e7d1d8586258cade509afb7de45327e953031 Mon Sep 17 00:00:00 2001 From: fujiwarat Date: Tue, 11 Dec 2012 08:20:50 +0900 Subject: [PATCH] Fix IBus.py errors. BUG=http://code.google.com/p/ibus/issues/detail?id=1559 TEST=ibus-anthy Review URL: https://codereview.appspot.com/6867085 --- bindings/pygobject/gi/overrides/IBus.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bindings/pygobject/gi/overrides/IBus.py b/bindings/pygobject/gi/overrides/IBus.py index bf3000e..dcead0e 100644 --- a/bindings/pygobject/gi/overrides/IBus.py +++ b/bindings/pygobject/gi/overrides/IBus.py @@ -45,7 +45,7 @@ class Component(IBus.Component): name='', description='', version='', - laicense='', + license='', author='', homepage='', command_line='', @@ -198,12 +198,12 @@ class Property(IBus.Property): state=IBus.PropState.UNCHECKED, symbol='', **kwargs): - prop_type = kwargs.get('prop_type', type) - if not isinstance(label, IBus.Text): + prop_type = kwargs.pop('prop_type', type) + if label != None and not isinstance(label, IBus.Text): label = Text(label) - if not isinstance(tooltip, IBus.Text): + if tooltip != None and not isinstance(tooltip, IBus.Text): tooltip = Text(tooltip) - if not isinstance(symbol, IBus.Text): + if symbol != None and not isinstance(symbol, IBus.Text): symbol = Text(symbol) super(Property, self).__init__(key=key, prop_type=prop_type, -- 2.7.4