Re: [gtk-list] Peculiar problem



> I have been looking at GTK+ and it's very good. However I have one
> interesting problem.
> 
> Even when I set up a window to intercept the "destroy" signal and close
> itself, I cannot close a window using my normal window manager functions.

Just handling destroy is not enough.  You must also request notification of
the delete event and return true.

gtk_signal_connect(GTK_OBJECT(window), "delete_event",
	GTK_SIGNAL_FUNC (handle_delete_cb), NULL);


int handle_delete_cb(GtkWidget *widget, gpointer data) {

     return TRUE;

}

Then it should be ok.

-Brian



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