X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fwindow-manager.c;h=91f44a59f8f592b8942817544fd74eef241e8d3c;hb=5de8102af0956488f48ae9bf4941e5867a0f1260;hp=cea00fed1c0ff3c56f786cd3b33478676e79686d;hpb=3d2d7cd7e835a1f49fb24e629972dd5d99d872ab;p=pspp-builds.git diff --git a/src/ui/gui/window-manager.c b/src/ui/gui/window-manager.c index cea00fed..91f44a59 100644 --- a/src/ui/gui/window-manager.c +++ b/src/ui/gui/window-manager.c @@ -22,6 +22,7 @@ #include #include "syntax-editor.h" #include "data-editor.h" +#include "output-viewer.h" #include #define _(msgid) gettext (msgid) @@ -88,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 (); }; @@ -142,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 (); }