Re: Passing a gint to a label...
- From: Derek Simkowiak <dereks kd-dev com>
- To: scherfa fh-trier de
- Cc: g gabriele europe com, "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: Passing a gint to a label...
- Date: Tue, 27 Jun 2000 13:18:43 -0700 (PDT)
-> > 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]