From 316a9539d8098cdaf0639cc701ecf2d824a22a1c Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sun, 27 Jan 2013 09:48:49 +0100 Subject: [PATCH] Add the full item name to the tool tip of a leaf item displayed in the tag browser --- src/calibre/library/database2.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/database2.py b/src/calibre/library/database2.py index 8ecc560122..a0fe04c801 100644 --- a/src/calibre/library/database2.py +++ b/src/calibre/library/database2.py @@ -1892,7 +1892,6 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns): # icon_map is not None if get_categories is to store an icon and # possibly a tooltip in the tag structure. icon = None - tooltip = '(' + category + ')' label = tb_cats.key_to_label(category) if icon_map: if not tb_cats.is_custom_field(category): @@ -1946,7 +1945,9 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns): is_editable = category not in ['news', 'rating', 'languages'] categories[category] = [tag_class(formatter(r.n), count=r.c, id=r.id, avg=avgr(r), sort=r.s, icon=icon, - tooltip=tooltip, category=category, + tooltip=u'({0}:{1})'.format(category, + formatter(r.n)), + category=category, id_set=r.id_set, is_editable=is_editable, use_sort_as_name=use_sort_as_name) for r in items]