Advertisement
Guest User

Untitled

a guest
Oct 12th, 2010
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.59 KB | None | 0 0
  1. --- /usr/share/ibus-table/engine/table.py       2010-06-22 16:09:33.000000000 +0800
  2. +++ table.py    2010-10-12 11:45:06.000000000 +0800
  3. @@ -123,7 +123,7 @@ class editor(object):
  4.              else:
  5.                  if self.db._is_chinese:
  6.                      # if IME declare as Chinese IME
  7. -                    return 0
  8. +                    return 4
  9.                  else:
  10.                      return -1
  11.          except:
  12. @@ -831,7 +831,7 @@ class tabengine (ibus.EngineBase):
  13.  #    _new_phrase_color         = 0xffffff
  14.  
  15.      # lookup table page size
  16. -    _page_size = 6
  17. +    _page_size = 9
  18.  
  19.      def __init__ (self, bus, obj_path, db ):
  20.          super(tabengine,self).__init__ (bus,obj_path)
  21. @@ -870,7 +870,7 @@ class tabengine (ibus.EngineBase):
  22.          del self._chars
  23.  
  24.          # check whether we can use '=' and '-' for page_down/up
  25. -        self._page_down_keys = [keysyms.Page_Down, keysyms.KP_Page_Down]
  26. +        self._page_down_keys = [keysyms.space, keysyms.Page_Down, keysyms.KP_Page_Down]
  27.          self._page_up_keys = [keysyms.Page_Up, keysyms.KP_Page_Up]
  28.          if '=' not in self._valid_input_chars \
  29.                  and '-' not in self._valid_input_chars:
  30. @@ -1436,7 +1436,7 @@ class tabengine (ibus.EngineBase):
  31.              self._update_ui ()
  32.              return res
  33.  
  34. -        elif key.code == keysyms.space:
  35. +        elif len (self._editor._chars[0]) < self._editor._max_key_len and key.code == keysyms.space:
  36.              o_py = self._editor._py_mode
  37.              sp_res = self._editor.space ()
  38.              #return (KeyProcessResult,whethercommit,commitstring)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement