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

Mike Kestner mkestner at gmail.com
Mon Feb 4 14:23:24 EST 2008

On Mon, 2008-02-04 at 19:30 +0100, Jesper K. Pedersen wrote:

> My ListStore is presented to the user in a TreeView and I can
> enter/change my data without a problem.
> I cannot get the ListStore.RowChanged event to call my function that
> will send the updated data back to the backend service.

You aren't really clear here, but I'm guessing you mean you have
editable cell renderers in this tree to perform this entry/updating.  If
so, you need to connect to the signal on the CellRenderer which
indicates an edit has completed, and post the data to your model.

If on the other hand, you are talking about a tree selection based
update, where you want to post something to your "backend service" when
the selected row changes, you use the TreeView.Selection object to
detect changes like that.

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.

Mike Kestner <mkestner at gmail.com>

More information about the Gtk-sharp-list mailing list