Re: delete_event



On 11/26/06, weijie <weijie90 gmail com> wrote:
Hi,

I have attached the source, main.cc

It works with and without &

You mean it doesn't work neither with nor without?
I used:

bool on_prefs_cancel_btn_clicked(GdkEventAny* ev)
...
prefs_diag->signal_delete_event().connect( sigc::ptr_fun(&on_prefs_cancel_btn_clicked) );

And it worked. signal_delete_event() returns Glib::SignalProxy1< bool,GdkEventAny* > so
your listener must use 1 argument of type GdkEventAny*, return bool.


--
WBR, Pavlo Korzhyk
ICQ#155870780

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