summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorfujiwarat <takao.fujiwara1@gmail.com>2017-05-26 13:17:07 +0900
committerfujiwarat <takao.fujiwara1@gmail.com>2017-05-26 13:17:07 +0900
commit6e2f9494e83eb945cb7c24d1114309ceb29bdd6e (patch)
tree8384fc623988684b669c9c3851c12b615c1129c3 /engine
parent3a6b250be1b0e1777c11a5bd9aca3306c536d16e (diff)
downloadibus-anthy-6e2f9494e83eb945cb7c24d1114309ceb29bdd6e.tar.gz
Fix page_up, page_down, candidate_clicked (#6)
Diffstat (limited to 'engine')
-rw-r--r--engine/python2/engine.py10
-rw-r--r--engine/python3/engine.py10
2 files changed, 10 insertions, 10 deletions
diff --git a/engine/python2/engine.py b/engine/python2/engine.py
index 24d2538..8f8de95 100644
--- a/engine/python2/engine.py
+++ b/engine/python2/engine.py
@@ -4,8 +4,8 @@
# ibus-anthy - The Anthy engine for IBus
#
# Copyright (c) 2007-2008 Peng Huang <shawn.p.huang@gmail.com>
-# Copyright (c) 2010-2016 Takao Fujiwara <takao.fujiwara1@gmail.com>
-# Copyright (c) 2007-2016 Red Hat, Inc.
+# Copyright (c) 2010-2017 Takao Fujiwara <takao.fujiwara1@gmail.com>
+# Copyright (c) 2007-2017 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -716,7 +716,7 @@ class Engine(IBus.EngineSimple):
i += 1
self.update_auxiliary_text(text, visible)
- def __page_up(self):
+ def __page_up(self, obj):
# only process cursor down in convert mode
if self.__convert_mode != CONV_MODE_ANTHY:
return False
@@ -731,7 +731,7 @@ class Engine(IBus.EngineSimple):
self.__invalidate()
return True
- def __page_down(self):
+ def __page_down(self, obj):
# only process cursor down in convert mode
if self.__convert_mode != CONV_MODE_ANTHY:
return False
@@ -778,7 +778,7 @@ class Engine(IBus.EngineSimple):
self.__invalidate()
return True
- def __candidate_clicked(self, index, button, state):
+ def __candidate_clicked(self, obj, index, button, state):
if index == 9:
keyval = IBus.KEY_0
else:
diff --git a/engine/python3/engine.py b/engine/python3/engine.py
index 579e802..c7f9a0b 100644
--- a/engine/python3/engine.py
+++ b/engine/python3/engine.py
@@ -4,8 +4,8 @@
# ibus-anthy - The Anthy engine for IBus
#
# Copyright (c) 2007-2008 Peng Huang <shawn.p.huang@gmail.com>
-# Copyright (c) 2010-2016 Takao Fujiwara <takao.fujiwara1@gmail.com>
-# Copyright (c) 2007-2016 Red Hat, Inc.
+# Copyright (c) 2010-2017 Takao Fujiwara <takao.fujiwara1@gmail.com>
+# Copyright (c) 2007-2017 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -715,7 +715,7 @@ class Engine(IBus.EngineSimple):
i += 1
self.update_auxiliary_text(text, visible)
- def __page_up(self):
+ def __page_up(self, obj):
# only process cursor down in convert mode
if self.__convert_mode != CONV_MODE_ANTHY:
return False
@@ -729,7 +729,7 @@ class Engine(IBus.EngineSimple):
self.__invalidate()
return True
- def __page_down(self):
+ def __page_down(self, obj):
# only process cursor down in convert mode
if self.__convert_mode != CONV_MODE_ANTHY:
return False
@@ -773,7 +773,7 @@ class Engine(IBus.EngineSimple):
self.__invalidate()
return True
- def __candidate_clicked(self, index, button, state):
+ def __candidate_clicked(self, obj, index, button, state):
if index == 9:
keyval = IBus.KEY_0
else: