time: continuation

Thanks for your answers :)
I've written a short example but it doesn't work.
I used glade to build my interface and i've put this pieceof code in my
main.c file:

  gchar *buff;
  gint count=0;
  GtkWidget *statusbar;
  statusbar = lookup_widget (window1, "statusbar1");

  void afficher_h()
  buff = g_strdup_printf (" My counter: %d", count++);
  gtk_statusbar_push (GTK_STATUSBAR (statusbar), 1, buff);

  g_timeout_add(1000, afficher_h, NULL);

What's wrong with that ?

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