Re: Passing a gint to a label...



-> > I need to put in a label a gint value...
-> > 
-> > void pass-help (gint value)
-> > {
-> >     gtk_label_set_text( GTK_LABEL(label),  value);
-> > }
-> > 
-> > How could I do that ?

	It looks like your "value" is an index for a help string.  If
that's the case, you'll need to use a hash to store the help strings, with
the gints as the "key" in your "key/value" pair.

	If you just want to print out a single integer number, follow the
previous suggestion...


--Derek






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