Re: [gtk-list] Problem unreferencing object

Rafael Peregrino da Silva wrote:
> Gtk-WARNING **: invalid class type `(unknown)' in cast to `GtkObject'
> Gtk-CRITICAL **: file gtkobject.c: line 1172 (gtk_object_unref):
> assertion `GTK_IS_OBJECT (object)' failed.

 Looks like when you call GTK_OBJECT (window1) you get that
warning. Are you sure window1 has been properly used? Check
if there is something after gtk_main () that calls any

You could also do this:

  gtk_signal_connect (GTK_OBJECT (window1), "destroy",
                      GTK_SIGNAL_FUNC (gtk_main_quit), NULL);

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