[Gtk-sharp-list] Automatically updating via ListStore.RowChanged event? (beginning C#/Gtk# programming)

Adam Tauno Williams adam at morrison-ind.com
Tue Feb 12 09:02:31 EST 2008


> I am making a small application using Gtk#/C# where I have a collection
> of data stored in a ListStore.
> What I am trying to get done is that when the ListStore content change
> through user input via the GUI a backend datastore will automatically
> update its data.
> My ListStore is presented to the user in a TreeView and I can
> enter/change my data without a problem.

Wasn't this question & answered just asked a few days ago?

> I have tried limiting my "ListStore Changed" callback to just
> containing a callout of a debug message to my log but nothing show up.
> I have also tried adding a button that manually calls the
> ListStore.EmitRowChanged method but my method is still not responding.
> Anyone with an example of using the ListStore.RowChanged event?

That isn't the method you want.  That is for the contents of the
ListStore notifying the application that something changed.  You want 
the other way around.

http://lists.ximian.com/pipermail/gtk-sharp-list/2008-February/008395.html

"ListStore.RowChanged will not fire in the selection changed scenario
above, and won't fire in the CellRenderer.Edited scenario until you post
the changed value back to the ListStore."

> I suspect that here is some sort of "interference" with the TreeView
> use of the ListStore to keep the treeview updated but I have no clue of
> how to get around that - or even if that is the case.

Nope.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080212/04196edd/attachment.bin 


More information about the Gtk-sharp-list mailing list