GTK threads cleanup

This commit is contained in:
Oliver Duis
2011-07-04 08:11:34 +02:00
parent a24cba937d
commit 44d1d18b3c
20 changed files with 108 additions and 216 deletions

View File

@@ -701,9 +701,7 @@ void MyDiagonalCurve::setActiveParam (int ac) {
queue_draw ();
}
int diagonalmchistupdate (void* data) {
gdk_threads_enter ();
int diagonalmchistupdateUI (void* data) {
MyCurveIdleHelper* mcih = (MyCurveIdleHelper*)data;
@@ -712,7 +710,7 @@ int diagonalmchistupdate (void* data) {
delete mcih;
else
mcih->pending--;
gdk_threads_leave ();
return 0;
}
@@ -720,7 +718,7 @@ int diagonalmchistupdate (void* data) {
mcih->myCurve->queue_draw ();
mcih->pending--;
gdk_threads_leave ();
return 0;
}
@@ -736,7 +734,7 @@ void MyDiagonalCurve::updateBackgroundHistogram (LUTu & hist) {
bghistvalid = false;
mcih->pending++;
g_idle_add (diagonalmchistupdate, mcih);
g_idle_add (diagonalmchistupdateUI, mcih);
}