[kupfer] browser: Flush result window right for RTL



commit 57512852913a3ae4a004adfd553e639e2661c1ba
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Dec 10 20:43:02 2009 +0100

    browser: Flush result window right for RTL

 kupfer/browser.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/browser.py b/kupfer/browser.py
index 41c4aa8..34dd8ad 100644
--- a/kupfer/browser.py
+++ b/kupfer/browser.py
@@ -446,11 +446,15 @@ class Search (gtk.Bin):
 		# self.window is a GdkWindow
 		win_width, win_height = self.window.get_size()
 		pos_x, pos_y = self.window.get_position()
-		lowerc = pos_y + win_height
+		sub_x = pos_x
+		sub_y = pos_y + win_height
+		x_coord = pos_x
 		table_w, table_len = self.table.size_request()
 		subwin_height = min(table_len, 200)
 		subwin_width = self.list_window.size_request()[0]
-		self.list_window.move(pos_x, lowerc)
+		if not text_direction_is_ltr():
+			sub_x += win_width - subwin_width
+		self.list_window.move(sub_x, sub_y)
 		self.list_window.resize(subwin_width, subwin_height)
 
 		win = self.get_toplevel()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]