static PsppireWindowClass *the_class;
-
+static GObjectClass *parent_class;
GType
psppire_window_get_type (void)
PsppireWindow *window = PSPPIRE_WINDOW (object);
PsppireWindowClass *class = PSPPIRE_WINDOW_CLASS (G_OBJECT_GET_CLASS (object));
- GtkWindowClass *parent_class = g_type_class_peek_parent (class);
-
- if ( window->finalized )
- return;
-
- window->finalized = TRUE;
-
- g_debug ("%s %p", __FUNCTION__, object);
-
g_hash_table_remove (class->name_table, window->name);
free (window->name);
if (G_OBJECT_CLASS (parent_class)->finalize)
- (*G_OBJECT_CLASS (parent_class)->finalize) (object);
+ G_OBJECT_CLASS (parent_class)->finalize (object);
}
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
+
+
GParamSpec *use_class_spec =
g_param_spec_enum ("usage",
"Usage",
g_hash_table_insert (class->name_table, "Untitled", NULL);
the_class = class;
+ parent_class = g_type_class_peek_parent (class);
}