I will keep it simple
I have the function inside_thread
that runs a while
loop and calls the function update_progressbar
that simply updates a GtkStatusBar
.
I am calling inside_thread
in a thread using g_thread_new("processing", GThreadFunc, NULL);
from a callback function on_starter_clicked
.
It tends to do the job, it works fast and it updates the status bar according to the progress of the while
loop.
The problem is that sometimes (at unspecified place) the progress bar gets stuck and it gets unstuck if I mouseenter or mouseleave a button in the application. Very strange behavior I must admit
What could be wrong?
Aucun commentaire:
Enregistrer un commentaire