[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: gtk_main
- From: Havoc Pennington <hp redhat com>
- To: gtk-app-devel-list redhat com
- Subject: Re: gtk_main
- Date: Sat, 9 Oct 1999 19:18:06 -0400 (EDT)
On Sat, 9 Oct 1999, Alex Graf wrote:
>
> Thanks very much for your assistance.
> Below is a compilable example, followed by the output.
The problem is that your window is destroyed, along with its contents, in
particular the text entry. So of course trying to use the entry won't
work.
You might want to read about delete_event and destroy in the documentation
(I know my book has some stuff about this), and get an idea what the
difference between them is. In particular, destroy is the default behavior
caused by delete_event (where delete_event comes from clicking the window
manager's close button), and you can override this default destroy by
returning TRUE from a delete_event handler.
> I use GTK 1.0, if that matters.
>
I would strongly recommend using 1.2 but in this case 1.0 is not causing
your problem. However you may run into trouble with 1.0 and this dialog
construct, I don't remember if 1.0 supports recursive calls to the main
loop.
Havoc
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]