Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webtoolbar.py
diff options
context:
space:
mode:
authorManuel QuiƱones <manuq@laptop.org>2012-01-06 14:22:48 (GMT)
committer Simon Schampijer <simon@schampijer.de>2012-01-06 19:25:24 (GMT)
commitd50001dc6f26b31e39689a20a6540ad4f2e525ba (patch)
treec418ab0448f2eb471c216695766f089b3c399ca5 /webtoolbar.py
parent766ae15770617580c0cba22a7118d13dc175d3cc (diff)
Global history for URL autocompletion in URL entry
The sqlite backend to store the global history is maintained. There are two fields in the database that are left unused: bookmark and gecko_flags. Signed-off-by: Manuel QuiƱones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'webtoolbar.py')
-rw-r--r--webtoolbar.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index c0e1396..461fc5c 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -127,16 +127,16 @@ class WebEntry(iconentry.IconEntry):
return len(list_store) > 0
def _search_popup(self):
- entry_x, entry_y = self.window.get_origin()
- entry_w, entry_h = self.size_request()
+ miss, window_x, window_y = self.props.window.get_origin()
+ entry_allocation = self.get_allocation()
- x = entry_x + entry_h / 2
- y = entry_y + entry_h
- width = self.allocation.width - entry_h
- height = Gdk.Screen.height() / 3
+ search_x = window_x + entry_allocation.x
+ search_y = window_y + entry_allocation.y + entry_allocation.height
+ search_width = entry_allocation.width
+ search_height = Gdk.Screen.height() / 3
- self._search_window.move(x, y)
- self._search_window.resize(width, height)
+ self._search_window.move(search_x, search_y)
+ self._search_window.resize(search_width, search_height)
self._search_window.show()
def _search_popdown(self):