diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-31 10:36:27 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-31 10:36:27 +0800 |
commit | fd0e130388b93cf6c8729d88d5642060c3ec1c15 (patch) | |
tree | 971723c4e2e8b7a14837ba544f5b1d9875f3c35c | |
parent | 5211d6ecc020e33a213c4d11cac1a7d2cd130a8b (diff) | |
download | ibus-fd0e130388b93cf6c8729d88d5642060c3ec1c15.tar.gz ibus-fd0e130388b93cf6c8729d88d5642060c3ec1c15.tar.xz ibus-fd0e130388b93cf6c8729d88d5642060c3ec1c15.zip |
Fix candidates window position problem.
-rw-r--r-- | panel/candidatepanel.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/panel/candidatepanel.py b/panel/candidatepanel.py index e1aad1e..528c7e7 100644 --- a/panel/candidatepanel.py +++ b/panel/candidatepanel.py @@ -150,6 +150,7 @@ class CandidatePanel(gtk.VBox): # self.__toplevel.connect("button-press-event", self.__button_press_event_cb) # self.__toplevel.connect("button-release-event", self.__button_release_event_cb) # self.__toplevel.connect("motion-notify-event", self.__motion_notify_event_cb) + self.__toplevel.connect("size-allocate", lambda w, a: self.__check_position()) self.__orientation = gtk.ORIENTATION_HORIZONTAL self.__orientation = gtk.ORIENTATION_VERTICAL @@ -415,8 +416,6 @@ class CandidatePanel(gtk.VBox): gtk.VBox.do_size_request(self, requisition) self.__toplevel.resize(1, 1) - self.__check_position() - def __check_position(self): bx = self.__cursor_location[0] + self.__toplevel.allocation.width by = self.__cursor_location[1] + self.__toplevel.allocation.height |