void App::updateDisplayTitleBar() { std::string defaultTitle = PACKAGE " v" VERSION; std::string title; DocumentView* docView = UIContext::instance()->activeView(); if (docView) { // Prepend the document's filename. title += docView->getDocument()->name(); title += " - "; } title += defaultTitle; she::instance()->defaultDisplay()->setTitleBar(title); }