0

I have this code:

Glib::RefPtr<Gtk::TreeSelection> clSelection = treeview.get_selection();
clSelection.signal_changed().connect( sigc::mem_fun(*this, &MyClass::treeview_clicked) );

And get this error on compile with g++:

‘class Glib::RefPtr<Gtk::TreeSelection>’ has no member named ‘signal_changed’

I've looked everywhere and I don't seem to be missing anything. Why does it say that signal_changed() doesn't exist when it's in the documentation? Is there another way I can go about this?

idlackage
  • 2,715
  • 8
  • 31
  • 52

1 Answers1

0

I believe it should be:

clSelection->signal_changed().connect( sigc::mem_fun(*this, &MyClass::treeview_clicked) );
Mark
  • 106,305
  • 20
  • 172
  • 230