Gramps 'Views' are not named in the window header (#448)
Resolves #001675
This commit is contained in:
parent
e5d5cfbd3a
commit
c5f2717623
@ -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()
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user