search for: gtktreeviewinsertcolumn

Displaying 1 result from an estimated 1 matches for "gtktreeviewinsertcolumn".

2011 Apr 04
1
RGtk2: How to populate an GtkListStore data model?
...brary(RGtk2) win <- gtkWindowNew() datamodel <- gtkListStoreNew('gchararray') treeview <- gtkTreeViewNew() renderer <- gtkCellRendererText() col_0 <- gtkTreeViewColumnNewWithAttributes(title="TitleXXX", cell=renderer, "text"="Bar") nc_next <- gtkTreeViewInsertColumn(object=treeview, column=col_0, position=0) gtkTreeViewSetModel( treeview, datamodel ) win$add( treeview ) # is there an alternative function for this? # iter <- gtkTreeModelGetIterFirst( datamodel )[[2]] # this function don't give VALID iter # gtkListStoreIterIsValid( datamodel, iter ) re...