C/GTK question

2006-06-16 Thread Matías Torres
I'm building an application in C that uses GTK. The reason i'm doing this is to learn GTK (and C as well) the main problem I've found is that i write all the GTK code in only one file and is getting too da## big, so i tried to divide the GTK code in different files, but it seems i'm do not understa

Re: How do you get the data from a GList?

2006-11-17 Thread Matías Torres
you can iterate through the list: node = mylist; while (next) { gtk_tree_model_get_iter (treemodel, &iter, GTK_TREE_PATH (node->data)); /* Gets data in column COLUMN (zero based) and copies (depending the type) it into data*/ gtk_tree_model_get (model, &iter, COLUMN, &data, -1);