[gtkmm] TreeStore on_rows_reordered signal.



Hi,

I have a working TreeStore and TreeView, with the rows set as
reorderable. I would like to perform some maintenance on the tree
objects when a row is moved via drag and drop. I thought I had found the
answer in the "on_rows_reordered" signal, but I'm having troubles
connecting it to a method that I am writing.

Here is what I tried to connect the signal:

  m_refTreeStore->signal_rows_reordered().connect(
      SigC::slot( *this, &MyTree::on_rows_reordered));

Then in the MyTree class (where this connection attempt also happens):

void MyTree::on_rows_reordered()
{
	blah...
}

The connect part bombs on compile. I figured I'm doing something
obviously wrong.

Thanks for the help.

Cheers,
~Dennis




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