static void
-editor_execute_syntax (const PsppireSyntaxWindow *se, GtkTextIter start,
- GtkTextIter stop)
+editor_execute_syntax (const PsppireSyntaxWindow *sw, GtkTextIter start,
+ GtkTextIter stop)
{
- execute_syntax (create_syntax_editor_source (se->buffer, start, stop));
+ PsppireWindow *win = PSPPIRE_WINDOW (sw);
+ const gchar *name = psppire_window_get_filename (win);
+ execute_syntax (create_syntax_editor_source (sw->buffer, start, stop, name));
}
G_CALLBACK (open_syntax_window),
window);
-
+#if 0
g_signal_connect (get_widget_assert (xml,"file_new_data"),
"activate",
G_CALLBACK (create_data_window),
window);
+#endif
g_signal_connect (get_widget_assert (xml,"help_about"),
"activate",