Re: [gtkmm] collapse_row(path) - strange problem



Murray Cumming Comneon com wrote:

-----Original Message-----
From: Igor Gorbounov [mailto:igorbounov voronezh serw ru] Sent: Donnerstag, 5. Juni 2003 13:15
To: gtkmm-list gnome org
Subject: [gtkmm] collapse_row(path) - strange problem


When I try to do
path.up();
MyTree->collapse_row(path);
somewhere in the middle of a tree (as a reaction for a mouse click on a row) - collapses all the tree.

I guess that would make sense if path is a first-level row. Up would then
take it to the root node.
Well, I don't know then how to manage all this situation. I need to
copy text from the clicked row to upper level row (three levels up)
and then collapse this upper level row. I've tried:

path = mnemoModel->get_path(*((&row)->parent()));
mnemoTree->collapse_row(path);

It doesn't work correctly, too. :-(
   Igor Gorbounov






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