[Gtk-sharp-list] On a ListStore moving items on the list... some questions!

Christopher David Howie me at chrishowie.com
Thu May 20 14:27:45 EDT 2010

On 05/20/2010 09:09 AM, fpiraneo wrote:
>> The documentation should be corrected.  Since TreeIter is a struct, null
>> cannot be converted to TreeIter.  Use TreeIter.Zero instead.
> Yes... I did it but this is the result:
> " Gtk-CRITICAL **: gtk_list_store_move_after: assertion `VALID_ITER
> (position, store)' failed"
> The source iter is valid...

Hrm, it looks like Gtk# does not expose a way to do this.  The C
function takes pointers to GtkTreeIter structures, and since the
corresponding C# type has been mapped as a struct, there is no way to
pass in a null value.  Looks like an API bug.

Chris Howie

If you correspond with me on a regular basis, please read this document:

PGP fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5


This document should be read only by those persons to whom it is
addressed.  If you have received this message it was obviously addressed
to you and therefore you can read it.

Additionally, by sending an email to ANY of my addresses you are
agreeing that I am, by definition, "the intended recipient," and that I
may do whatever I wish with the contents of any message you send me,
unless a pre-existing agreement prohibits me from so doing.

This overrides any disclaimer or statement of confidentiality that may
be included on your message.

More information about the Gtk-sharp-list mailing list