Re: populate gtk tree view from outside
- From: Olivier Sessink <oliviersessink gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: populate gtk tree view from outside
- Date: Wed, 12 Sep 2012 17:18:44 +0200
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 right position, and set the columns, for
example
gtk_tree_model_get_iter_first(GTK_TREE_MODEL(treestore), &iter);
gtk_tree_store_set(treestore, &iter,
COL_FIRST_NAME, strAuth,
COL_LAST_NAME, strEditor,
-1);
regards,
Olivier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]