diff options
author | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-02-16 20:23:22 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-02-16 20:23:22 (GMT) |
commit | c0b297f6f2bfa1adf84203ec92ed123612693b3b (patch) | |
tree | c57316d6f51301822fc5712e09d07faefea1ef1c | |
parent | ac6ac17eaad5859e570d82470d7c7dbb00d02477 (diff) |
The bookmark tooltip should make sense
-rw-r--r-- | readsidebar.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/readsidebar.py b/readsidebar.py index 508376e..4f2dec3 100644 --- a/readsidebar.py +++ b/readsidebar.py @@ -1,4 +1,5 @@ import logging +import time import gtk @@ -35,7 +36,11 @@ class Sidebar(gtk.EventBox): xocolor = XoColor(bookmark.color) bookmark_icon = Icon(icon_name = 'emblem-favorite', \ pixel_size = 18, xo_color = xocolor) - bookmark_icon.set_tooltip_text(_("Stupid tooltip")) + + tooltip_text = (_('Bookmark added by %(user)s on %(time)s') \ + % {'user': bookmark.nick, 'time': time.ctime(bookmark.timestamp)}) + bookmark_icon.set_tooltip_text(tooltip_text) + self._box.pack_start(bookmark_icon ,expand=False,fill=False) bookmark_icon.show_all() @@ -75,4 +80,5 @@ class Sidebar(gtk.EventBox): self.update_for_page(page) def is_showing_local_bookmark(self): - return self._is_showing_local_bookmark
\ No newline at end of file + return self._is_showing_local_bookmark + |