Is it possible to attach signalhandler to a GdkWindow?



I have a program whith a GdkWindow, and now i want to run gtk_main_quit()
if that window gets the delete-event.

How do i do that?
All examples i have read wants the first argument for gtk_signal_connect to
be a GTK_OBJECT and i dont think a 
GdkWindow is a GTK_OBJECT :(

Maybe its just me who is braindead, as usual...  but i cant see how to do
this.

I didn't get the gtkdrawable thing to work, but using a GdkWindow was very
easy.. and all i wanted was a window
to draw in, so a GdkWindow workes just fine for me :)

Maybe i will just have to learn how to use GtkDrawable..  but i would
rather use the GdkWindow.. 





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