Gramps 'Views' are not named in the window header (#448)

Resolves #001675
This commit is contained in:
Serge Noiraud 2017-09-12 02:05:46 +02:00 committed by Sam Manzi
parent e5d5cfbd3a
commit c5f2717623
2 changed files with 12 additions and 0 deletions

View File

@ -316,6 +316,9 @@ class PageView(DbGUIElement, metaclass=ABCMeta):
self.sidebar.set_active()
self.bottombar.set_active()
self.active = True
new_title = "%s - %s - Gramps" % (self.dbstate.db.get_dbname(),
self.get_title())
self.uistate.window.set_title(new_title)
if self.dirty:
self.uistate.set_busy_cursor(True)
self.build_tree()

View File

@ -81,6 +81,12 @@ class DashboardView(PageView):
"""
pass
def get_title(self):
"""
Used to set the titlebar in the configuration window.
"""
return _('Dashboard')
def get_stock(self):
"""
Return image associated with the view, which is used for the
@ -105,6 +111,9 @@ class DashboardView(PageView):
self.widget.set_inactive()
def set_active(self):
new_title = "%s - %s - Gramps" % (self.dbstate.db.get_dbname(),
self.get_title())
self.uistate.window.set_title(new_title)
self.active = True
self.widget.set_active()