Re: Fwd: GtkTreeView, GtkListStore and more...

2006-08-18 Thread Iago Rubio
On Thu, 2006-08-17 at 18:34 +0200, Fernando Apesteguía wrote: > Thanks, [snip fixed stuff] > Can you point me to an example on how to traverse a GtkListStore? /* # example 1 - "the quick and cheap, only for list" */ void traverse_store (GtkListStore *store) { gboolean valid; valid =

Fwd: GtkTreeView, GtkListStore and more...

2006-08-17 Thread Fernando Apesteguía
t: Fwd: GtkTreeView, GtkListStore and more... To: gtk-app-devel-list@gnome.org Thanks, I'll take it into account, but it doesn't fix the problem. The iter is not incremented... I don't know why. The compilation shows no errors as the debug terminal does not. Can you point me to an examp

Fwd: GtkTreeView, GtkListStore and more...

2006-08-17 Thread Fernando Apesteguía
rwarded message -- From: Iago Rubio <[EMAIL PROTECTED]> Date: Aug 17, 2006 6:14 PM Subject: Re: GtkTreeView, GtkListStore and more... To: gtk-app-devel-list@gnome.org On Thu, 2006-08-17 at 17:43 +0200, Fernando Apesteguía wrote: > for(){ >... >if(should_be_deleted) >

Re: GtkTreeView, GtkListStore and more...

2006-08-17 Thread Iago Rubio
On Thu, 2006-08-17 at 17:43 +0200, Fernando Apesteguía wrote: > for(){ >... >if(should_be_deleted) > gtk_list_store_remove(model,&iter); > > gtk_tree_model_iter_next(GTK_TREE_MODEL(model),&iter); > } Try: if(should_be_deleted) gtk_list_store_remove(model, &ite

GtkTreeView, GtkListStore and more...

2006-08-17 Thread Fernando Apesteguía
Hi List! I have a problem dealing with my GtkTreView and related objects. In a first step, I need to add some rows to my GtkTreeView, so I used a pair of: gtk_list_store_append(model,&iter); gtk_list_store_set(model,&iter,0,data1,1,data2,-1); functions inside a loop. After this, I will