X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-syntax-window.c;h=766134b2678132abc7eea0425e9a18e62bfe9ea1;hb=f130490a5cf37625ee3b4d16356ba59725ca40b7;hp=5b3267441dc50140f495ee2883531e555382688f;hpb=c7d0520e3af8636aa9be6e7c75dcf9ff17cbf52f;p=pspp-builds.git diff --git a/src/ui/gui/psppire-syntax-window.c b/src/ui/gui/psppire-syntax-window.c index 5b326744..766134b2 100644 --- a/src/ui/gui/psppire-syntax-window.c +++ b/src/ui/gui/psppire-syntax-window.c @@ -24,10 +24,10 @@ #include #include - #include "psppire-syntax-window.h" #include "psppire-data-window.h" +#include "psppire-window-register.h" #include "about.h" #include "psppire-syntax-window.h" #include "syntax-editor-source.h" @@ -37,14 +37,11 @@ #define _(msgid) gettext (msgid) #define N_(msgid) msgid - - static void psppire_syntax_window_base_finalize (PsppireSyntaxWindowClass *, gpointer); static void psppire_syntax_window_base_init (PsppireSyntaxWindowClass *class); static void psppire_syntax_window_class_init (PsppireSyntaxWindowClass *class); static void psppire_syntax_window_init (PsppireSyntaxWindow *syntax_editor); - GType psppire_syntax_window_get_type (void) { @@ -73,12 +70,13 @@ psppire_syntax_window_get_type (void) return psppire_syntax_window_type; } - static void psppire_syntax_window_finalize (GObject *object) { GObjectClass *class = G_OBJECT_GET_CLASS (object); + PsppireSyntaxWindow *window = PSPPIRE_SYNTAX_WINDOW (object); + GObjectClass *parent_class = g_type_class_peek_parent (class); if (G_OBJECT_CLASS (parent_class)->finalize) @@ -474,6 +472,7 @@ open_syntax_window (GtkMenuItem *menuitem, gpointer parent) } + extern struct source_stream *the_source_stream ; static void @@ -574,8 +573,10 @@ psppire_syntax_window_init (PsppireSyntaxWindow *window) g_signal_connect (get_widget_assert (xml,"windows_minimise_all"), "activate", - G_CALLBACK (psppire_window_minimise_all), - NULL); + G_CALLBACK (psppire_window_minimise_all), NULL); + + PSPPIRE_WINDOW (window)->menu = GTK_MENU (get_widget_assert (xml,"windows_menu")); + g_object_ref (PSPPIRE_WINDOW (window)->menu); g_object_unref (xml);