From: John Darrington Date: Fri, 2 Jan 2009 06:48:32 +0000 (+0900) Subject: Add menushell initialiser to output viewer X-Git-Tag: v0.7.3~296^2~10 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dee07e30883ae4e1c72ebf3c612655fdf8ad6f5;p=pspp-builds.git Add menushell initialiser to output viewer --- diff --git a/src/ui/gui/output-viewer.glade b/src/ui/gui/output-viewer.glade index 0bcf5f3e..aeb88793 100644 --- a/src/ui/gui/output-viewer.glade +++ b/src/ui/gui/output-viewer.glade @@ -78,7 +78,7 @@ _Windows True - + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK diff --git a/src/ui/gui/psppire-output-window.c b/src/ui/gui/psppire-output-window.c index 4905aba5..5fc52e9b 100644 --- a/src/ui/gui/psppire-output-window.c +++ b/src/ui/gui/psppire-output-window.c @@ -252,6 +252,9 @@ psppire_output_window_init (PsppireOutputWindow *window) G_CALLBACK (psppire_window_minimise_all), NULL); + PSPPIRE_WINDOW (window)->menu = GTK_MENU_SHELL (get_widget_assert (xml,"windows_menu")); + + g_object_unref (xml); g_signal_connect (window, "delete-event", @@ -305,9 +308,6 @@ reload_viewer (PsppireOutputWindow *ow) mark = gtk_text_buffer_create_mark (ow->buffer, NULL, &end_iter, TRUE); - - g_debug ("%s %p\n", __FUNCTION__, ow); - #ifdef __CYGWIN__ /* Apparently Windoze is not capabale of writing to a file whilst