Re: Problem when closing a program



On 05/22/2009 08:12 PM, Oscar Dávila wrote:

im trying something like this
window->signal_delete_event().connect(
sigc::ptr_fun(function_that_close_program) );

where function_that_close_program have Gtk::Main::quit();

but it is giving me a lot of errors:
http://linux.mty.itesm.mx/~odavilar/errores


- error messages in spanish are hard to understand
- check the signature of function_that_close_program(). It is obviously wrong.
(*hint* it takes a GdkEventAny * as a unique argument and returns bool)



Hub


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