Set lookup table's orientation before updating candidates.
authorPeng Huang <shawn.p.huang@gmail.com>
Fri, 26 Mar 2010 07:32:23 +0000 (15:32 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Fri, 26 Mar 2010 07:42:01 +0000 (15:42 +0800)
ui/gtk/candidatepanel.py

index 8ee29a30d9b86f34b37c9b4bf6ecc55c58602369..e5b26e3a1764cc9d5a575541674ca764a38ae3cb 100644 (file)
@@ -389,12 +389,12 @@ class CandidatePanel(gtk.VBox):
             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: