Font Selection: Use a local css_provider instead of the default one
[pspp] / src / ui / gui / psppire-syntax-window.c
index b8aa16872d6c3e83eb26ea2bb06883eb8d46c48a..38a4a3f4ff94a3f8ddad8ac8be334de9d570c5fa 100644 (file)
@@ -647,13 +647,15 @@ create_syntax_window (void)
   gtk_widget_show (w);
 }
 
-void
+GtkWindow *
 open_syntax_window (const char *file_name, const gchar *encoding)
 {
   GtkWidget *se = psppire_syntax_window_new (NULL);
 
   if ( file_name)
     load_and_show_syntax_window (se, file_name, encoding);
+
+  return GTK_WINDOW (se);
 }
 
 
@@ -885,7 +887,7 @@ psppire_syntax_window_init (PsppireSyntaxWindow *window)
 
     g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (run_current_line));
 
-    GApplication *app = g_application_get_default ();
+    GtkApplication *app = GTK_APPLICATION (g_application_get_default ());
     const gchar *accels[2] = { "<Ctrl>R", NULL};
     gtk_application_set_accels_for_action (app,
                                           "win.run-current-line",