Re: Catching "destroy" signals
- From: Daniel Haude <dhaude PHYSnet uni-hamburg de>
- To: gtk-app-devel-list gnome org
- Subject: Re: Catching "destroy" signals
- Date: Mon, 17 Nov 2003 17:31:10 +0100 (MET)
On Mon, 17 Nov 2003, Russell Shaw wrote:
What do you mean "closing from outside"?
I mean that the main application top-level window (A), upon being closed,
makes another top-level window (B) disappear as well.
I've now managed to build a GDK_DELETE event structure (within the
"delete_event" callback of A) which I can send to B by feeding it into the
event loop using gdk_event_put(). This deletes window B good and proper;
all I now have to do is somehow keep the main loop from getting stopped
prematurely by the call to gtk_main_quit() which happens in A's "destroy"
event handler. I'll probably try the following loop:
while (gtk_events_pending()) {
gtk_main_iteration_do();
}
gtk_main_quit();
--Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]