diff --git a/gramps/gui/views/pageview.py b/gramps/gui/views/pageview.py index 5d56d43a8..c0d717a48 100644 --- a/gramps/gui/views/pageview.py +++ b/gramps/gui/views/pageview.py @@ -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() diff --git a/gramps/plugins/view/dashboardview.py b/gramps/plugins/view/dashboardview.py index 2bd9a2382..a54a8f26f 100644 --- a/gramps/plugins/view/dashboardview.py +++ b/gramps/plugins/view/dashboardview.py @@ -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()