Re: [gtk-list] Can't preempt WM destroy event



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]