Re: Synchronization of gtk_tree_store add/remove events



On Wed, Sep 19, 2012 at 09:44:28PM +0200, Arne Pagel wrote:
I have an application where I use a tree-view to display some data
from an external hardware.  Different Objects can be added or removed
to the treestore, each existing object in the treestore has a specific
id which is used to get data over some communication interface.

It can easily happen, the the user deselects an object in the
treestore while this communication is ongoing.  This means that my
treepath or iter which I rembered befor is not valid anymore after the
communication has finished (*1).

Did you mean deletes instead of deselects here?  The rest of the
description would make much more sense to me then.

Anyway, I think GtkTreeRowReference is what you need â a thing that
points to a specific row that may not exist anymore and it had a method
to tell whether the row still exists.

Yeti




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