Tuesday, September 02, 2008

Lists meet autoglade

The latest autoglade (available from svn repository) now supports lists as a special case of a GtkTreeView widget usng a ListStore model with a single column. Remember, as always, it's a zero programming solution.

As other widgets, lists can be initialized from the environment using autoglade annotation to its name, for example:


will use the environment variable treeview1 to obtain list header and items

export treeview1='("Fruits" "Apples" "Bananas" "Hedge aple" "Kiwifruits" "Melons" "Oranges" "Pineapples" "Strawberries" )'

Using one of the tests also present in the svn repository

$ ./list.sh

and, after selecting one item and pressing OK


appears in application's stdout.

More information about autoglade can be obtained from http://autoglade.sf.net.


Yoanne said...
This comment has been removed by the author.
Diego Torres Milano said...

Thanks for your comment.
As the first line of this post states, it's only available on development branch on subversion repository.
SF site has instructions on how to use subversion.
It will be available on a release soon.

Yoanne said...
This comment has been removed by the author.
periyannan said...

Hi, this is good article
Internship providing companies in chennai | Where to do internship | internship opportunities in Chennai | internship offer letter | What internship should i do | How internship works | how many internships should i do ? | internship and inplant training difference | internship guidelines for students | why internship is necessary