Re: [gtk-list] Peculiar problem
- From: Brian Stempel <stempel oneimage com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Peculiar problem
- Date: Tue, 11 Nov 1997 22:12:06 -0700 (MST)
> 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]