gtk_label_set_text
- From: Dean McCullough <dpmccul comcast net>
- To: gtk-list gnome org
- Subject: gtk_label_set_text
- Date: Fri, 07 Jan 2005 12:51:11 -0500
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]