Re: why gtk_label_set_text fail to change text?



chen.shengqi wrote:

Dear sirs:
   I place some GtkLabel on statusbar, and want to change the text when app is runing. but it seems that 
gtk_label_set_text sometimes will fail.
example, I set it to "kf_rpt" first, then gtk_label_set_text(..,"test1") , it show out "test1t", it seems 
tnah it copy "test1" to the text, but not release the old one. why so? how can I overcome this? 
   thanks.

Strange, the gtk_label_set_text() duplicates the string you've passed to it.
Can you post the piece of source ?

Olexiy





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