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

Re: GtkLabel and text from int variable

2007-06-09 Thread Martyn Russell
-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[11]; > sprintf(buf, "%i%c", var, 0); > gtk_label_set_text(gtk_label,