Re: Synchronization of gtk_tree_store add/remove events



On 09/19/2012 09:44 PM, Arne Pagel wrote:
Dear all,

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

why not connect to the "row-deleted" signal of the model, and whenever a
row is deleted, look if there is any ongoing communication and kill it?

Olivier




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