Remove unused GObject pointer from dialog functions and update signal connect functio...
[pspp-builds.git] / src / ui / gui / comments-dialog.c
index 49d143cb6c51f379df11ad5172c789fada53a7f6..d8714e7f0e9185de7504c74a80ce3f0d3aae1f9b 100644 (file)
@@ -21,7 +21,7 @@
 #include "psppire-data-window.h"
 #include "psppire-data-editor.h"
 #include <language/syntax-string-source.h>
-#include "helper.h"
+#include "executor.h"
 #include "psppire-var-store.h"
 #include <ui/syntax-gen.h>
 
@@ -91,7 +91,7 @@ wrap_line (GtkTextBuffer *buffer,
 
 
 void
-comments_dialog (GObject *o, gpointer data)
+comments_dialog (gpointer data)
 {
   GtkTextIter iter;
   gint response ;
@@ -145,7 +145,7 @@ comments_dialog (GObject *o, gpointer data)
   }
 
   cd.xml = xml;
-  cd.dict = vs->dict;
+  g_object_get (vs, "dictionary", &cd.dict, NULL);
 
   g_signal_connect (buffer, "mark-set",
                    G_CALLBACK (set_column_number), label);