X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fwindow-manager.c;h=91f44a59f8f592b8942817544fd74eef241e8d3c;hb=0bd0098aec2ee31d9460c8d4c1263d0b5ccc4324;hp=b78a341a0336d723ac4145e4ece3db2fcd39cc28;hpb=732b6a86124e89e24d685ed785d2df55728eb01b;p=pspp-builds.git diff --git a/src/ui/gui/window-manager.c b/src/ui/gui/window-manager.c index b78a341a..91f44a59 100644 --- a/src/ui/gui/window-manager.c +++ b/src/ui/gui/window-manager.c @@ -1,21 +1,18 @@ -/* - PSPPIRE --- A Graphical User Interface for PSPP - Copyright (C) 2006, 2007 Free Software Foundation +/* PSPPIRE - a graphical user interface for PSPP. + Copyright (C) 2006, 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 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. - 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. + 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. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ #include @@ -25,6 +22,7 @@ #include #include "syntax-editor.h" #include "data-editor.h" +#include "output-viewer.h" #include #define _(msgid) gettext (msgid) @@ -91,6 +89,9 @@ window_create (enum window_type type, const gchar *name) case WINDOW_DATA: e = (struct editor_window *) new_data_editor (); break; + case WINDOW_OUTPUT: + e = (struct editor_window *) new_output_viewer (); + break; default: g_assert_not_reached (); }; @@ -145,6 +146,10 @@ set_window_name (struct editor_window *e, e->name = g_strdup_printf (_("Untitled%d"), next_window_id () ); title = g_strdup_printf (_("%s --- PSPP Data Editor"), e->name); break; + case WINDOW_OUTPUT: + e->name = g_strdup_printf (_("Output%d"), next_window_id () ); + title = g_strdup_printf (_("%s --- PSPP Output"), e->name); + break; default: g_assert_not_reached (); }