[Sugar-devel] [PATCH] Autocomplete functionality for the address does not work #2406

simon at schampijer.de simon at schampijer.de
Wed Oct 6 07:57:20 EDT 2010


From: Simon Schampijer <simon at schampijer.de>

see as well #2291 for more info. This one is important for 0.90.
---
 webtoolbar.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/webtoolbar.py b/webtoolbar.py
index 69a3c8e..20616a4 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -160,7 +160,7 @@ class WebEntry(AddressEntry):
     def __view_button_press_event_cb(self, view, event):
         model = view.get_model()
 
-        path, col_, x_, y_ = view.get_path_at_pos(event.x, event.y)
+        path, col_, x_, y_ = view.get_path_at_pos(int(event.x), int(event.y))
         if path:
             uri = model[path][self._COL_ADDRESS]
             self.activate(uri)
-- 
1.7.2.2



More information about the Sugar-devel mailing list