Re: [gtk-list] Window destroying!

> void xmark_destroyed(GtkWidget *lwindow, GdkEvent *event, gpointer *data)
> {
>   gtk_widget_destroy(lwindow);
>   lwindow=NULL;
> // delete some other stuff too
> }

This only sets the local copy of lwindow to NULL. In all other places it will
still be whatever value it is.
I think you want to connect to "destroyed" as well like this

gtk_signal_connect (GTK_OBJECT (lwindow), "destroyed",
			GTK_SIGNAL_FUNC (gtk_widget_destroyed), &lwindow);


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