Re: [gtk-list] Can't preempt WM destroy event
- From: Yasushi Shoji <yashi yashi com>
- To: gtk-list redhat com, kodis jagunet com
- Subject: Re: [gtk-list] Can't preempt WM destroy event
- Date: Sun, 02 Jan 2000 15:46:12 -0500
From: John Kodis <kodis@jagunet.com>
Subject: [gtk-list] Can't preempt WM destroy event
Date: Sun, 2 Jan 2000 14:49:55 -0500
> What I'm having trouble with is when the subordinate window is closed
> using the window manager's "destroy" button, I'd like to preempt the
> destruction of the subordinate window, and just hide it instead.
[...]
> "destroy", (GtkSignalFunc)gtk_main_quit, NULL);
>
> gtk_signal_connect(GTK_OBJECT(sub),
>- "destroy", (GtkSignalFunc)on_sub_destroy, NULL);
>+ "delete-event", (GtkSignalFunc)on_sub_destroy, NULL);
>
> printf("main: top=%p, sub=%p\n", top, sub);
should do it.
--
yashi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]