X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Fpsppire-dict.c;h=ae047d311336f84e3541de5c384caf3fe500fb97;hb=a8a5c3b5634a6255d1e0a057fc47c5a931b8492a;hp=0d700fe5a4a12b9eb595c4bce1efd7b4eb75f0e6;hpb=72147c12357446b304264b6944b8a1d92c45f53c;p=pspp-builds.git diff --git a/src/ui/gui/psppire-dict.c b/src/ui/gui/psppire-dict.c index 0d700fe5..ae047d31 100644 --- 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 - 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 @@ -201,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 @@ -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; + dict_set_callbacks (new_dict->dict, &gui_callbacks, new_dict); + return new_dict; }