Re: Problem with sigc::bind



The compiler is complaining that class template
sigc::bound_argument<Gtk::Window&> 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/libsigc-2.0/docs/reference/html/classsigc_1_1bound__argument_3_01const__reference__wrapper_3_01T__wrapped_01_4_01_4.html

Since your compiler is finding this class, but not this member method, I
will have to defer to someone with more knowledge, like Muarry Cummings.

Bob Caryl

Johnson Zhao wrote:

>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<Gtk::Window&>(sigc::mem_fun(*this,
>&ComInfo::on_company_activated),window));
>    ......
>}
>
>//This is the response function
>ComInfo::on_company_activated(const Gtk::TreeModel::Path& path,
>Gtk::TreeViewColumn*, Gtk::Window& window)
>{
>  Gtk::MessageDialog dialog(window,"This is an INFO MessageDialog");
>  dialog.set_secondary_text("And this is the secondary text that
>explains things.");
>
>  dialog.run();
>
>}
>
>In another source file :
>ComInfo m_ComInfo;
>
>ComShow::ComShow()
>:m_ComInfo(*this)
>{
>....
>}
>
>but this met many problems it says,
>In instantiation of `sigc::bound_argument<Gtk::Window&>':
>1263 E:\Server\GTK\include\sigc++-2.0\sigc++\adaptors\bind.h
>instantiated from `sigc::bind_functor<-0x000000001,
>sigc::bound_mem_functor3<void, ComInfo, const Gtk::TreePath&,
>Gtk::TreeViewColumn*, Gtk::Window&>, Gtk::Window&, sigc::nil,
>sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>'
>
>158 E:\Server\GTK\include\sigc++-2.0\sigc++\adaptors\bound_argument.h
>'const class sigc::bound_argument<Gtk::Window&>' has no member named
>'visit'
>
> E:\Server\GTK\include\sigc++-2.0\sigc++\adaptors\bound_argument.h In
>function `void sigc::visit_each(const T_action&, const
>sigc::bound_argument<T_type>&) [with T_action =
>sigc::internal::limit_derived_target<sigc::trackable*,
>sigc::internal::slot_do_unbind>, T_type = Gtk::Window&]':
>
>158 E:\Server\GTK\include\sigc++-2.0\sigc++\adaptors\bound_argument.h
>'const class sigc::bound_argument<Gtk::Window&>' has no member named
>'visit'
>
>any one can give me some advice, thanks a lot!
>_______________________________________________
>gtkmm-list mailing list
>gtkmm-list gnome org
>http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>  
>
begin:vcard
fn:Robert L Caryl Jr.
n:Caryl Jr.;Robert L
org:Fiscal Systems, Inc.
adr:;;102 Commerce Circle;Madison;AL;35758-2706;USA
email;internet:bob fis-cal com
title:Senior Systems Designer
tel;work:256-772-8920 x108
tel;fax:256-772-8590
tel;cell:256-527-7855
x-mozilla-html:TRUE
url:http://www.fis-cal.com
version:2.1
end:vcard



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