Closing a window.

I'm a Java developer that is brand new to GTK and not the world's
greatest C programmer. (I'm acutally working with GTK in an effort to
become more familiar with C.)

I've been working through the online GTK 2 tutorial. I modified the
"hello world" example to just show a window (with no button).

I have a callback function defined for the delete_event and the
destroy event. These are connected to the GtkWindow using the
gtk_signal_connect function as shown in the "hello world" example.

However, I can't close the window with the "X" button on the window
title bar. The minimize and maximize buttons work just find. For some
reason, my code isn't catching the event that comes from the close
button on the title bar.

Can you guys give me some things to check in my code that might lead
me to the cause of the problem? Perhaps I'm messing something up with
the signal connection.

Thank you for the help.


P.S. - I'm running the example on Windows XP using the Code::Blocks IDE.

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