X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fwindow-manager.h;h=449d1d26bf8ba54b75c2b902281ca5414f1184d8;hb=7eee0554f378481faf447e2d2e940f389d6b05ec;hp=994cdbe21e7c7988befc5d7467af39fbd0878801;hpb=9491a8bd354152d3a228e1bf041c7ad6228750d7;p=pspp-builds.git diff --git a/src/ui/gui/window-manager.h b/src/ui/gui/window-manager.h index 994cdbe2..449d1d26 100644 --- a/src/ui/gui/window-manager.h +++ b/src/ui/gui/window-manager.h @@ -1,3 +1,23 @@ +/* + PSPPIRE --- A Graphical User Interface for PSPP + Copyright (C) 2007 Free Software Foundation + + This program 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 2 of the License, or + (at your option) any later version. + + This program 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 this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ + + #ifndef WINDOW_MANAGER_H #define WINDOW_MANAGER_H @@ -13,7 +33,7 @@ enum window_type struct editor_window { GtkWindow *window; /* The top level window of the editor */ - gchar *name; /* The name of this editor */ + gchar *name; /* The name of this editor (UTF-8) */ enum window_type type; } ; @@ -22,6 +42,8 @@ struct editor_window * window_create (enum window_type type, const gchar * window_name (const struct editor_window *); +/* Set the name of this window based on FILENAME. + FILENAME is in "filename encoding" */ void window_set_name_from_filename (struct editor_window *e, const gchar *filename);