Why this simple threat program dont work properly?

2005-02-17 Thread Boris Winter
please help ?? #includegtk/gtk.h #includestdio.h GtkWidget *window; GtkWidget *poruka; GtkWidget *label; void *argument_thread(void *args){ unsigned long int b=0; char a[10]; for(b;b1;b++){ sprintf(a, %u, b); gtk_label_set(GTK_LABEL (label), a); g_usleep(100); } } int main(int argc,

Re: Why this simple threat program dont work properly?

2005-02-17 Thread Iago Rubio
On Thu, 2005-02-17 at 23:02, Boris Winter wrote: please help ?? Please read the answers to your previuos messages. Stefan Kost have answered you in the previously opened thread. [quoted from=Stefan Kost] Hi Boris, because inside the thread you need to do: gdk_threads_enter();