Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webtoolbar.py
diff options
context:
space:
mode:
authorLucian Branescu Mihaila <lucian.branescu@gmail.com>2010-07-17 22:19:29 (GMT)
committer Lucian Branescu Mihaila <lucian.branescu@gmail.com>2010-07-17 22:19:29 (GMT)
commit7f7978b5a3ffa2de76b4c90b6354fdae34498581 (patch)
treea18d421e8e262f44909d46e73f5415b389e769f1 /webtoolbar.py
parente5f0cd312defa4f636c1f3c132e64c2bae7be2c8 (diff)
Small fixes.
Diffstat (limited to 'webtoolbar.py')
-rw-r--r--webtoolbar.py4
1 files changed, 2 insertions, 2 deletions
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)