Re: [Vala] gtk treeview (one column) example



Oh great :) this looks much better. I had spend some hours trying
to make the C code generated with vala fit with the right ampersands
and so :P

btw Thanks.

On Thu, Nov 08, 2007 at 02:51:44PM +0100, Ond?ej Jirman wrote:
You can use:

  ((ListStore)tv.model).insert_with_values(null, -1, 0, "value");

instead of:

  TreeIter iter;
  tv.model.append(ref iter);
  tv.model.set(ref iter, 0, item);

      o.j.

On Thu, 2007-11-08 at 14:43 +0100, pancake wrote:
Here's a one column example for using gtktreeview with Vala.

Maybe the code can be better, but it works, and imho is most ok.

the treeview is one of the most complicated things to manage with gtk, so
a good documentation for it would be good.

The example is attached.


  --pancake
_______________________________________________
Vala mailing list
Vala paldo org
http://www.paldo.org/mailman/listinfo/vala




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