Re: problem with gtk_list_store_set

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

 



hi,

the gtk_list_store_set() function only sets the values of the current row
defined by iter.

you must add a new row individually with the function
gtk_list_store_append() before setting the actual values for the new row
with gtk_list_store_set().

richard

> Hello , i got a little problem with this fuction , when i try to add a new
> item to the list , it erase the last one , in final i got one item in my
> list , and i want 5 items for example , this a piece of the code:
>
> if(gtk_spin_button_get_value(GTK_SPIN_BUTTON(moy))>9.26)
> {
> strcpy(success,"Successed") ;
> pass=TRUE;
> }
> else {
>      strcpy(success,"Dismissed");
>      pass=FALSE;
>      }
> gtk_list_store_set(store,&iter,
> STUDENT_COLUMN,gtk_entry_get_text(GTK_ENTRY(name)) ,
> MOY_COLUMN,gtk_spin_button_get_value(GTK_SPIN_BUTTON(moy)),
> PASS_COLUMN,pass,
> MENTION_COLUMN,success,
> -1);
> Please help
>
> _________________________________________________________________
> Testez Windows Llive Mail Beta !
> http://www.msn.fr/newhotmail/Default.asp?Ath=f
>
> _______________________________________________
> 
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>


_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux