Re: problem with gtk_list_store_set
- From: "Richard Boaz" <riboaz xs4all nl>
- To: "Mrad James Deane" <xtremejames183 msn com>
- Cc: gtk-list gnome org
- Subject: Re: problem with gtk_list_store_set
- Date: Thu, 27 Jul 2006 07:58:25 +0200 (CEST)
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 mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]