gtk_label_set_text



I would like to use a label (or something similar) to provide feedback to the user on the current value of a parameter (level).

I would like to use code simular to the following:

char lab[10];
sprintf(lab,"Level %d",level);
gtk_label_set_text( GtkLabel *Llabel,
                         lab);

However, this does not work, since the second parameter to gtk_label_set_text is type const char.

Any ideas of a simple way to accomplish this?

Thanks.
--
Dean P McCullough




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