Re: Added tooltip to display details of items in TreeView



Bob Caryl wrote:

Tony Yum wrote:
That connection syntax should probably be:

signal().connect(sigc::bind<bool>(sigc::mem_fun(object, &mem_fun), false));

where mem_fun expects the boolean value as a formal parmater.

I don't think that was changed in Gtkmm-2.6 comparing to Gtkmm-2.4, but connect() function has 2 arguments: 1 - connection slot, 2 - flag after = true by default. So, if you would your callback to be called before other handlers you should to pass false as second argument. Instead, you may wish to use connect_notify() function that "sending" after = false.

Regards,
-andrew




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