Dear friends,
I have defined a treeview model as follows:
enum
{
COL_FIRST_NAME = 0,
COL_LAST_NAME,
COL_YEAR_BORN,
NUM_COLS
} ;
static GtkTreeModel *
create_and_fill_model (void)
{
GtkTreeStore *treestore;
GtkTreeItertoplevel, child;
treestore = gtk_tree_store_new(NUM_COLS,
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 iterator at the
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 *treestore;
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,