Re: populate gtk tree view from outside

2012-09-12 Thread Rudra Banerjee
Oliver, Thanks a lot. Its working properly. Only change that I have made is using gtk_tree_store_append in place of gtk_tree_model_get_iter_first. Thanks a lot again. Regards, On Wed, 2012-09-12 at 21:31 +0200, Olivier Sessink wrote: > On 09/12/2012 06:30 PM, Rudra Banerjee wrote: > > Oliver, > > T

Re: populate gtk tree view from outside

2012-09-12 Thread Olivier Sessink
On 09/12/2012 06:30 PM, Rudra Banerjee wrote: > Oliver, > Thanks for your reply. > The problem basically is to pass on the function argument from one to > other. you need to create a header file (main.h) that has the enum, and extern GtkListStore *treestore; in main.c define GtkListStore *treesto

Re: populate gtk tree view from outside

2012-09-12 Thread Rudra Banerjee
Oliver, Thanks for your reply. The problem basically is to pass on the function argument from one to other. So, if I make a more detail, then In file: main.c I have: enum { COL_FIRST_NAME = 0, COL_LAST_NAME, COL_YEAR_BORN, NUM_COLS } ; static GtkTreeModel * create_and_fill_model (void) {

Re: populate gtk tree view from outside

2012-09-12 Thread Olivier Sessink
On 09/12/2012 12:21 PM, Rudra Banerjee wrote: [..] > > strAuth = gtk_entry_get_text(GTK_ENTRY(e->entryAuth)); > strEditor = gtk_entry_get_text(GTK_ENTRY(e->entryEditor)); > > > Is it possible to add these strAuth, strEditor in those treeview's 1st > and 2nd column? just acquire an iterato