Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--places.py2
-rw-r--r--webtoolbar.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/places.py b/places.py
index c69b841..16ae900 100644
--- a/places.py
+++ b/places.py
@@ -76,7 +76,7 @@ class SqliteStore(object):
'order by visits desc limit 0, ?',
(text, text, self.MAX_SEARCH_MATCHES))
- result = [self._place_from_row(row) for row in cursor]
+ result = [Place.from_row(row) for row in cursor]
finally:
cursor.close()
diff --git a/webtoolbar.py b/webtoolbar.py
index 57058fc..bbb3a10 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -162,7 +162,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)
@@ -410,7 +410,7 @@ class PrimaryToolbar(ToolbarBox):
def populate(history_list, palette):
for history_item in history_list:
- menu_item = MenuItem(item.get_title(), text_maxlen=60)
+ menu_item = MenuItem(history_item.get_title(), text_maxlen=60)
menu_item.connect('activate', self.__history_item_activated_cb,
history_item)