Re: Re: GtkLabel and text from int variable

2007-06-10 Thread przemu
U¿ytkownik Martyn Russell <[EMAIL PROTECTED]> napisa³: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >[EMAIL PROTECTED] wrote: >> Hi, > >Hi, > >> is there a possibility to put a value of int variable as a text of GtkLabel. >> I tried to do it >> in that way: >> >> int var = 100; >> char* buf

GtkLabel and text from int variable

2007-06-09 Thread przemu
Hi, is there a possibility to put a value of int variable as a text of GtkLabel. I tried to do it in that way: int var = 100; char* buf[11]; sprintf(buf, "%i%c", var, 0); gtk_label_set_text(gtk_label, buf); or with no null character sprintf(buf, "%i", 100). Neither of them works. How can i do