Added the ability to run syntax from the syntax editor.
[pspp-builds.git] / src / ui / gui / psppire-dict.c
index 59378fc968352b8a839533d21a043817e0e5c23e..ae047d311336f84e3541de5c384caf3fe500fb97 100644 (file)
@@ -200,26 +200,9 @@ static const struct dict_callbacks gui_callbacks =
 static void
 psppire_dict_init (PsppireDict *psppire_dict)
 {
-  psppire_dict->dict = dict_create ();
-
-  dict_set_callbacks (psppire_dict->dict, &gui_callbacks, psppire_dict);
-
   psppire_dict->stamp = g_random_int();
 }
 
-/**
- * psppire_dict_new:
- * @returns: a new #PsppireDict object
- *
- * Creates a new #PsppireDict.
- */
-PsppireDict*
-psppire_dict_new (void)
-{
-  return g_object_new (G_TYPE_PSPPIRE_DICT, NULL);
-}
-
-
 /**
  * psppire_dict_new_from_dict:
  * @returns: a new #PsppireDict object
@@ -232,6 +215,8 @@ psppire_dict_new_from_dict (struct dictionary *d)
   PsppireDict *new_dict = g_object_new (G_TYPE_PSPPIRE_DICT, NULL);
   new_dict->dict = d;
 
+  dict_set_callbacks (new_dict->dict, &gui_callbacks, new_dict);
+
   return new_dict;
 }