Re: Problem with sigc::bind

2005-11-20 Thread Johnson Zhao
Hey all, I use sigc::ref(window) and compiled the progrem, but according to Murray's opinion that not the best way to do it. Sorry not told the more information about the gtk and gtkmm releases, before I use gtk 2.6.9 with gtkmm 2.6.1-1, sames that,at all those are older, but the problem occured

Re: Problem with sigc::bind

2005-11-19 Thread Murray Cumming
On Sat, 2005-11-19 at 16:28 +0100, Murray Cumming wrote: > On Fri, 2005-11-18 at 15:47 -0600, Bob Caryl wrote: > > Hey Murray, > > > > What about the original problem/question: Johnson Zhao's compiler > > complaining that there is no "visit" method declared for the > > sigc::bound_argument class?

Re: Problem with sigc::bind

2005-11-19 Thread Murray Cumming
On Fri, 2005-11-18 at 15:47 -0600, Bob Caryl wrote: > Hey Murray, > > What about the original problem/question: Johnson Zhao's compiler > complaining that there is no "visit" method declared for the > sigc::bound_argument class? > (http://mail.gnome.org/archives/gtkmm-list/2005-November/msg00190

Re: Problem with sigc::bind

2005-11-18 Thread Bob Caryl
Hey Murray, What about the original problem/question: Johnson Zhao's compiler complaining that there is no "visit" method declared for the sigc::bound_argument class? (http://mail.gnome.org/archives/gtkmm-list/2005-November/msg00190.html) Bob Murray Cumming wrote: >On Fri, 2005-11-18 at 17:02

Re: Problem with sigc::bind

2005-11-18 Thread Murray Cumming
On Fri, 2005-11-18 at 17:02 +0100, Armin Burgmeier wrote: > Normally, you tell sigc::bind via the first template argument which > argument to bind to and not what type. I do not know whether there is > some magic to decide whether to interpret this argument as type or > argument number, but you

Re: Problem with sigc::bind

2005-11-18 Thread Armin Burgmeier
Normally, you tell sigc::bind via the first template argument which argument to bind to and not what type. I do not know whether there is some magic to decide whether to interpret this argument as type or argument number, but you may also try this: m_TreeView.signal_row_activated().connect(

Re: Problem with sigc::bind

2005-11-18 Thread Bob Caryl
The compiler is complaining that class template sigc::bound_argument has no member method named "visit". The docs at http://libsigc.sourceforge.net/ seem to make no mention of this class at all. However, I found documentation of this class here: http://www.spectronet.inf.br/Documentation/libsi

Problem with sigc::bind

2005-11-17 Thread Johnson Zhao
the following is my program structure... I want to transfer the father window to the signal handler ComInfo::ComInfo(Gtk::Window& window) { // bind Gtk::Window& window m_TreeView.signal_row_activated().connect(sigc::bind(sigc::mem_fun(*this, &ComInfo::on_company_activated),window));

Problem with sigc::bind

2005-11-17 Thread Johnson Zhao
the following is my program structure... I want to transfer the father window to the signal handler ComInfo::ComInfo(Gtk::Window& window) { // bind Gtk::Window& window m_TreeView.signal_row_activated().connect(sigc::bind(sigc::mem_fun(*this, &ComInfo::on_company_activated),window));