[EMAIL PROTECTED] writes:
> "G.Gabriele" wrote:
> >
> > Hi all,
> >
> > 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 ?
> >
> Maybe this way :
> void pass-help (gint value)
> {
> gchar * buffer;
> buffer = (gchar *)g_malloc(sizeof(value));
> g_snprintf(buffer,sizeof(value),"%d",value);
> g_free(buffer);
> }
> > Thanks,
> > G.Gabriele
In any case, "pass-help" is not a valid C identifier. :-)
wb
---
Will Benton '00 | student emeritus and emissary lead developer
[EMAIL PROTECTED] | web waste: http://woggo.webfreekz.com
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list