2 PSPPIRE --- A Graphical User Interface for PSPP
3 Copyright (C) 2004 Free Software Foundation
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 #include "psppire-object.h"
27 /* --- prototypes --- */
28 static void psppire_object_class_init (PsppireObjectClass *class);
29 static void psppire_object_init (PsppireObject *accel_group);
30 static void psppire_object_finalize (GObject *object);
33 /* --- variables --- */
34 static GObjectClass *parent_class = NULL;
37 /* --- functions --- */
39 * psppire_object_get_type:
40 * @returns: the type ID for accelerator groups.
43 psppire_object_get_type (void)
45 static GType object_type = 0;
49 static const GTypeInfo object_info = {
50 sizeof (PsppireObjectClass),
52 (GBaseFinalizeFunc) NULL,
53 (GClassInitFunc) psppire_object_class_init,
54 NULL, /* class_finalize */
55 NULL, /* class_data */
56 sizeof (PsppireObject),
58 (GInstanceInitFunc) psppire_object_init,
61 object_type = g_type_register_static (G_TYPE_OBJECT, "PsppireObject",
62 &object_info, G_TYPE_FLAG_ABSTRACT);
68 static guint signal_changed = 0 ;
71 psppire_object_class_init (PsppireObjectClass *class)
73 GObjectClass *object_class = G_OBJECT_CLASS (class);
75 parent_class = g_type_class_peek_parent (class);
77 object_class->finalize = psppire_object_finalize;
80 g_signal_new ("changed",
81 G_OBJECT_CLASS_TYPE (class),
85 g_cclosure_marshal_VOID__VOID,
91 psppire_object_finalize (GObject *object)
93 G_OBJECT_CLASS (parent_class)->finalize (object);
97 psppire_object_init (PsppireObject *psppire_object)
103 * psppire_object_new:
104 * @returns: a new #PsppireObject object
106 * Creates a new #PsppireObject.
109 psppire_object_new (void)
111 return g_object_new (G_TYPE_PSPPIRE_OBJECT, NULL);