/********************************************************************************* * COPYRIGHT NOTICE: * Copyright © 2014 Andrew Smith (GNA SERVICES INC) * All Rights Reserved. * * This file, tpad_title.c , is part of tpad. * * tpad is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * tpad is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with tpad. If not, see . ********************************************************************************/ #include "tpad_headers.h" extern GtkWidget *window; void set_title(){ (cfg_show_full_path()) ? gtk_window_set_title(GTK_WINDOW(window),g_strescape(tpad_fp_get_current(),"\\\?\'\"")) : gtk_window_set_title(GTK_WINDOW(window),get_currentfile_basename()); }