Re: [gtk-list] Re: GTK--: hello.cc questions



Owen Taylor wrote:
> 
> So, yes, there is one, but it is completely useless from
> the GTK+ and (gtk--) point of view.
> 

What about the "examples/helloworld" example from the GTK+ (and from the
tutorial) ?
There is a callback for "delete event". If I return FALSE from that
callback, then the window is deleted and an "destroy event" is emitted.
I used it and it worked OK.

And, if I choose not to call this callback (by commenting the callback
asigment:

	//gtk_signal_connect (GTK_OBJECT (window), "destroy",
	//                    GTK_SIGNAL_FUNC (destroy), NULL);

than my main window is deleted but the application doesn't stop. Why is
this all so complicated ? Where can I find a good explanation of what
singnals are emitted and when ?
(I've found something in the docs/widget_system.txt, but still a bit
confused).

Ionutz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]