Format window title

Show in the following format:

  file_name (directory_path) - atom
  
This seems to be the format consistently used by Linux editors
and conveys the file name in the task bar when minimized.

Also insert a `~` and drop the directory prefix when the
file/folder being viewed is under the HOME directory
This commit is contained in:
Kevin Sawicki
2012-06-07 14:37:50 -07:00
parent 5ae24551a3
commit 7cc136112a
2 changed files with 27 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ int main(int argc, char *argv[]) {
CefInitialize(settings, app);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window), "Atom");
gtk_window_set_title(GTK_WINDOW(window), "atom");
gtk_window_maximize(GTK_WINDOW(window));
g_signal_connect(window, "focus", G_CALLBACK(&HandleFocus), NULL);