projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New objects psppire-window and psppire-syntax-window.
[pspp]
/
src
/
ui
/
gui
/
comments-dialog.c
diff --git
a/src/ui/gui/comments-dialog.c
b/src/ui/gui/comments-dialog.c
index f1a4936e6de06e9df95abcff13966f09faa8705e..6b2e800779ce4a300672c75853e4a7e949a1ccb4 100644
(file)
--- a/
src/ui/gui/comments-dialog.c
+++ b/
src/ui/gui/comments-dialog.c
@@
-20,7
+20,7
@@
#include "helper.h"
#include "data-editor.h"
#include <language/syntax-string-source.h>
#include "helper.h"
#include "data-editor.h"
#include <language/syntax-string-source.h>
-#include "
syntax-editor
.h"
+#include "
psppire-syntax-window
.h"
#include "psppire-var-store.h"
#include <ui/syntax-gen.h>
#include "psppire-var-store.h"
#include <ui/syntax-gen.h>
@@
-177,10
+177,11
@@
comments_dialog (GObject *o, gpointer data)
{
gchar *syntax = generate_syntax (&cd);
{
gchar *syntax = generate_syntax (&cd);
- struct syntax_editor *se =
- (struct syntax_editor *) window_create (WINDOW_SYNTAX, NULL);
+ GtkWidget *se = psppire_syntax_window_new ();
- gtk_text_buffer_insert_at_cursor (se->buffer, syntax, -1);
+ gtk_text_buffer_insert_at_cursor (PSPPIRE_SYNTAX_WINDOW (se)->buffer, syntax, -1);
+
+ gtk_widget_show (se);
g_free (syntax);
}
g_free (syntax);
}