projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the ability to run syntax from the syntax editor.
[pspp-builds.git]
/
src
/
ui
/
gui
/
psppire-dict.c
diff --git
a/src/ui/gui/psppire-dict.c
b/src/ui/gui/psppire-dict.c
index 0d700fe5a4a12b9eb595c4bce1efd7b4eb75f0e6..ae047d311336f84e3541de5c384caf3fe500fb97 100644
(file)
--- a/
src/ui/gui/psppire-dict.c
+++ b/
src/ui/gui/psppire-dict.c
@@
-1,7
+1,6
@@
/*
PSPPIRE --- A Graphical User Interface for PSPP
Copyright (C) 2004, 2006 Free Software Foundation
/*
PSPPIRE --- A Graphical User Interface for PSPP
Copyright (C) 2004, 2006 Free Software Foundation
- Written by John Darrington
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-201,26
+200,9
@@
static const struct dict_callbacks gui_callbacks =
static void
psppire_dict_init (PsppireDict *psppire_dict)
{
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->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
/**
* psppire_dict_new_from_dict:
* @returns: a new #PsppireDict object
@@
-233,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;
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;
}
return new_dict;
}