Re: GtkLabel: setting text



Alberto Cabello Sánchez <alberto unex es> writes:

I´m trying to change the text inside a label widget. If I write 
label_set_text(GTK_LABEL(label),"Something");
it works as expected. But if I try 

That's right.

gchar *text;
/* doing stuff with text, such as sscanf, strcpy, strcat, etc... */
label_set_text(GTK_LABEL(label),text);

There's something wrong with your code.  What is text, at that point?

-Jonathan




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