Re: Is it possible to use int in labels?



On Wed, 20 Jul 2005, Søren Juul wrote:

Is it possible to use a int in labels? or is it only chars?

Only chars.

  GtkWidget *lbl;
  gchar *numstr;

  numstr = g_strdup_printf("%d", number);
  lbl = gtk_label_new(numstr);
  g_free(numstr);

Allin Cottrell


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