return psppire_data_window_type;
}
+static GObjectClass *parent_class ;
static void
psppire_data_window_finalize (GObject *object)
{
PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (object);
- GObjectClass *class = G_OBJECT_GET_CLASS (object);
-
- GObjectClass *parent_class = g_type_class_peek_parent (class);
-
g_object_unref (de->xml);
-
if (G_OBJECT_CLASS (parent_class)->finalize)
(*G_OBJECT_CLASS (parent_class)->finalize) (object);
}
static void
psppire_data_window_class_init (PsppireDataWindowClass *class)
{
+ parent_class = g_type_class_peek_parent (class);
}
g_free (de->file_name);
de->file_name = NULL;
- // default_window_name (de);
+ psppire_window_set_filename (PSPPIRE_WINDOW (de), NULL);
}
-void
-create_data_window (void)
-{
- GtkWidget *w = psppire_data_window_new ();
- gtk_widget_show (w);
-}
-
-
static void
psppire_data_window_init (PsppireDataWindow *de)
{