invalid object



Sorry for a stupid question, I lost hope to understand..

I have created a widget HistoryWindow, derived from GnomeDialog. It
works fine, casts like GNOME_DIALOG (hw) are ok, but when I close the
dialog, get these warnings:

GnomeUI-CRITICAL **: file gnome-dialog.c: line 1060
(gnome_dialog_destroy): assertion `GNOME_IS_DIALOG(dialog)' failed.

Gtk-WARNING **: invalid unclassed pointer in cast to `GtkObject'

Gtk-CRITICAL **: file gtkobject.c: line 1070
(gtk_object_get_data_by_id): assertion `GTK_IS_OBJECT (object)' failed.

Gtk-CRITICAL **: file gtkobject.c: line 1172 (gtk_object_unref):
assertion `GTK_IS_OBJECT (object)' failed.

Gtk-CRITICAL **: file gtkobject.c: line 1172 (gtk_object_unref):
assertion `GTK_IS_OBJECT (object)' failed.

GnomeUI-CRITICAL **: file gnome-dialog.c: line 1007
(gnome_dialog_button_clicked): assertion `GNOME_IS_DIALOG(dialog)'
failed.

I.e. somehow gnome_dialog_destroy is passed an invalid object. As I can
see, the derivation process is the same as of GnomePropertyBox, but that
one works:(

Where can be the problem?

I've put the source files at http://03bar.ktu.lt/~menesis/misc/history.c
and history.h, these are from GnomeICU (not yet committed).

Thanks

-- 
Gediminas Paulauskas
Kaunas, Lithuania




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]