Display: change the internal title display

This commit is contained in:
Edouard Dupin 2011-10-11 14:27:31 +02:00
parent a03fb96dc9
commit 9b7707cf9a

View File

@ -165,11 +165,15 @@ void MainWindows::SetTitle(Edn::File &fileName, bool isModify)
}
tmp += "Edn";
gtk_window_set_title(GTK_WINDOW(m_mainWindow), tmp.c_str());
tmp = " ";
if (fileName.GetShortFilename() != "") {
tmp = fileName.GetFolder();
tmp += fileName.GetFolder();
tmp += "/";
tmp += fileName.GetShortFilename();
} else {
tmp = "Edn";
tmp += "Edn";
}
tmp += " ";
gtk_label_set_text(GTK_LABEL(m_internalTitleLabel), tmp.c_str());
}