Browse files

Set lookup table's orientation before updating candidates.

  • Loading branch information...
1 parent 24e6c76 commit 39782a6a4ae6221868e2430d9085dacba98b8548 @phuang phuang committed Mar 26, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/gtk/candidatepanel.py
View
4 ui/gtk/candidatepanel.py
@@ -389,12 +389,12 @@ def update_lookup_table(self, lookup_table, visible):
self.hide_lookup_table()
self.__lookup_table = lookup_table or ibus.LookupTable()
- self.__refresh_candidates()
- self.__refresh_labels()
orientation = self.__lookup_table.get_orientation()
if orientation not in (ibus.ORIENTATION_HORIZONTAL, ibus.ORIENTATION_VERTICAL):
orientation = self.__orientation
self.set_current_orientation(orientation)
+ self.__refresh_candidates()
+ self.__refresh_labels()
# show lookup table
if visible:

0 comments on commit 39782a6

Please sign in to comment.