[Gtk-sharp-list] Adding a Lot of Rows into a TreeView

Felipe Almeida Lessa felipe.lessa at gmail.com
Mon Mar 5 17:39:50 EST 2007


On 3/5/07, KLessou <klessou at gmail.com> wrote:
>     store.Append (out iter);
>     store.SetValue (iter, 0, imagePreview);
>     store.SetValue (iter, 1, description);

On a side note, this can be changed to (the more readable):

    iter = store.AppendValues(imagePreview, description);

or even

    store.AppendValues(imagePreview, description);

if you don't need the TreeIter (you'd get a warning about assigning
and never reading, otherwise).

-- 
Felipe.


More information about the Gtk-sharp-list mailing list