From 32f14ccbdcdc32fa8c096be4a24d7a875b3cf96b Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Mon, 2 Jun 2008 08:50:59 +0800 Subject: [PATCH] Add dummy methods for DummyPanel --- ibusdaemon/panel.py | 62 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/ibusdaemon/panel.py b/ibusdaemon/panel.py index dfca7893..da4a6564 100644 --- a/ibusdaemon/panel.py +++ b/ibusdaemon/panel.py @@ -108,5 +108,63 @@ class Panel (ibus.Object): gobject.type_register (Panel) -class DummyPanel: - pass +class DummyPanel (ibus.Object): + __gsignals__ = { + "page-up" : ( + gobject.SIGNAL_RUN_FIRST, + gobject.TYPE_NONE, + ()), + "page-down" : ( + gobject.SIGNAL_RUN_FIRST, + gobject.TYPE_NONE, + ()), + "cursor-up" : ( + gobject.SIGNAL_RUN_FIRST, + gobject.TYPE_NONE, + ()), + "cursor-down" : ( + gobject.SIGNAL_RUN_FIRST, + gobject.TYPE_NONE, + ()), + } + + def set_cursor_location (self, x, y, w, h): + pass + + def update_preedit (self, text, attrs, cursor_pos, show): + pass + + def show_preedit_string (self): + pass + + def hide_preedit_string (self): + pass + + def update_aux_string (self, text, attrs, show): + pass + + def show_aux_string (self): + pass + + def hide_aux_string (self): + pass + + def update_lookup_table (self, lookup_table, show): + pass + + def show_candidate_window (self): + pass + + def hide_candidate_window (self): + pass + + def show_language_bar (self): + pass + + def hide_language_bar (self): + pass + + def reset (self): + pass + +gobject.type_register (DummyPanel)