Re: invalid object



On 2001.10.15 13:43 Gediminas Paulauskas wrote:

Tr, 2001-10-10 10:32, Gediminas Paulauskas rašė:
>
> 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.

Have you connected any extra "destroy" signal handlers? Do other signal handlers destroy some widgets?

It looks to me lile a double-destroy (BTW, for some reason the server the source is located claims that it has application/msword content typel).

This seems to be superflous:

        gtk_signal_connect_object (GTK_OBJECT (close_button), "clicked",
                                   GTK_SIGNAL_FUNC (gtk_widget_destroy),
                                   GTK_OBJECT (hw));

but this is just a guess. Remember also that destroy method must leave the object in sane state, no dangling pointers.

/Pawel
--
-----
Pawel Salek, pawsa theochem kth se



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