Re: Signal handling



El mié, 06-04-2005 a las 09:56 +0000, Rok Jaklic escribió:
> "Diego Fdez." Durán <diego <at> goedi.net> writes:
> > Try:
> > 
> > m_TreeView.get_column(0)->signal_clicked().connect(bind<int>
> > (sigc::mem_fun(*this, &ExampleWindow::column_clicked)));
> > 
> > I think that the example you are trying to compile is for a previous
> > version of gtkmm that the libraries you are using. Use upgraded
> > examples :)
> >
> 
> Hi. 
> 
> Thank you for you quick answer.
> 
> m_TreeView.get_column(0)->signal_clicked().connect(sigc::bind<int>
> (sigc::mem_fun(*this, &ExampleWindow::column_clicked),0 ));
> 
Does this work ?

m_TreeView.get_column(0)->signal_clicked().connect(
	bind( sigc::mem_fun(*this, &ExampleWindow::column_clicked), 0 ) );

> did the trick, however I do not get any output from function I'm calling.
> 
> Function is:
> void ExampleWindow::column_clicked(int column)
> {
>         std::cout << "just something" << std::endl;
> } 
> 
> Best,
> 
> Rok
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
-- 
-----------------------------------
Diego Fdez. Durán <diego goedi net>
Web: http://www.goedi.net
GPG ID: 90D266BB
-----------------------------------

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente



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