Re: Adding row to the ListStore



On Monday 13 December 2004 08:52, Petr Hracek wrote:

My code:
struct _DialogData
{
    GtkWindow * TreeView;
}

Just to make sure: a GtkTreeView is not a GtkWindow, you should use GtkWidget* 
or GtkTreeView*.

    // Now I want add data as a rows to the ListStore.
    // How I can do this

 GtkTreeIter  iter;

 gtk_list_store_append (GTK_LIST_STORE (model), &iter);


Also see http://scentric.net/tutorial/treeview-tutorial.html

Cheers
 -Tim



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]