Re: Problem with GtkProgressBar and multi thread application

2006-12-24 Thread Jorge Navalon
On Sun, 2006-12-24 at 00:26 +0100, Tomasz Jankowski wrote: > Hello! > > This is simple code: > #include > > gboolean pulse_it (gpointer data) { > gtk_progress_bar_pulse (data); > return TRUE; > } > > gint thread_fun (gpointer data) { > gint source_id = g_timeout_add (100, (GSource

Problem with GtkProgressBar and multi thread application

2006-12-23 Thread Tomasz Jankowski
Hello! This is simple code: #include gboolean pulse_it (gpointer data) { gtk_progress_bar_pulse (data); return TRUE; } gint thread_fun (gpointer data) { gint source_id = g_timeout_add (100, (GSourceFunc) pulse_it, data); g_usleep (500); g_source_remove (source_id);