Re: Signal handling



El mar, 05-04-2005 a las 13:22 +0000, Rok Jaklic escribió:
> Hi.
> 
> I try to compile some treeview example and I want to get column number
> and when I compile I get an Error: 
> examplewindow.cc: In constructor `ExampleWindow::ExampleWindow()':
> examplewindow.cc:117: error: missing template arguments before '(' token
> 
> where line 117 is:
> m_TreeView.get_column(0)->signal_clicked().connect(sigc::bind<int>
> (sigc::slot(*this, &ExampleWindow::column_clicked)));

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 :)

> 
> I used example from:
> http://mail.gnome.org/archives/gtkmm-list/2003-April/msg00031.html
> 
> 
> Anyone maybe knows what am I doing wrong?
> 
> Thank you.
> 
> 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]