From dc3c37c4716d01450b74508ba5d42cb3915b0ee0 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 12 Feb 2010 20:18:07 +0000 Subject: [PATCH] Display view name on status bar; enlarge to enable more text svn: r14340 --- src/DisplayState.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/DisplayState.py b/src/DisplayState.py index 7047d5a7a..30f436913 100644 --- a/src/DisplayState.py +++ b/src/DisplayState.py @@ -332,7 +332,7 @@ class DisplayState(gen.utils.Callback): self.disprel_defpers = None self.disprel_active = None self.warnbtn = warnbtn - self.last_bar = self.status.insert(min_width=15, ralign=True) + self.last_bar = self.status.insert(min_width=35, ralign=True) self.set_relationship_class() formatter = logging.Formatter('%(levelname)s %(name)s: %(message)s') @@ -456,7 +456,10 @@ class DisplayState(gen.utils.Callback): gobject.timeout_add(5000, self.modify_statusbar, dbstate) def show_filter_results(self, dbstate, matched, total): - text = "%d/%d" % (matched, total) + #nav_type = self.viewmanager.active_page.navigation_type() + #text = ((_("%(nav_type)s View") % {"nav_type": _(nav_type)}) + + text = (self.viewmanager.active_page.title + + (": %d/%d" % (matched, total))) self.status.pop(1, self.last_bar) self.status.push(1, text, self.last_bar)