Use signal handlers with the window as the first argument where reasonable to do so
[pspp-builds.git] / src / ui / gui / psppire-syntax-window.c
index 3541a165705b20dbed1b68cf366db4e17d1c0c51..de12be49f21d7d96d6a1e9145d599f84bd1ef2bf 100644 (file)
@@ -425,10 +425,7 @@ psppire_syntax_window_init (PsppireSyntaxWindow *window)
 
   gtk_widget_show_all (box);
 
-  g_signal_connect (get_action_assert (xml,"file_new_syntax"),
-                   "activate",
-                   G_CALLBACK (create_syntax_window),
-                   NULL);
+  g_signal_connect_swapped (get_action_assert (xml,"file_new_syntax"), "activate", G_CALLBACK (create_syntax_window), NULL);
 
 #if 0
   g_signal_connect (get_action_assert (xml,"file_new_data"),