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

delete-event or delete_event



I found this kind of curiosity... can somebody tell me if what i'm
writing is true?

When I was looking for some method do destroy my main application
window, I did something like this:

gtk_signal_connect(GTK_OBJECT(mot_main_window), "delete_event",
GTK_SIGNAL_FUNC(mot_destroy_window), NULL);

and my program killed its window just fine.

But then I watched the reference documentation and i saw that the event
was "delete-event" and was written with an minus sign instead of a
underscore sign.  I changed it and it also seemed to work.

Can somebody explain this to me why both worked?

Greetzzz
MC303
-- 
Bart Vandewoestyne		http://hello.to/MC303		
Hugo Verrieststraat 48		Bart.Vandewoestyne@skynet.be
8550 ZWEVEGEM			ICQ# 21275340
BELGIUM - EUROPE		nick: MC303
Phone: +32(0)56/75.48.11
-------------------------------------------------------------
"If we knew what it was we were doing, it would not
 be called research, would it?"
				-- Albert Einstein --



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