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

@@ -305,11 +305,8 @@ void ToneCurve::waitForAutoExp () {
curveEditorG->set_sensitive (false);
}
int aexpcomputed (void* data) {
gdk_threads_enter();
int autoExpChangedUI (void* data) {
((ToneCurve*)data)->autoExpComputed_ ();
gdk_threads_leave();
return 0;
}
@@ -317,7 +314,7 @@ void ToneCurve::autoExpChanged (double expcomp, int black) {
nextBlack = black;
nextExpcomp = expcomp;
g_idle_add (aexpcomputed, this);
g_idle_add (autoExpChangedUI, this);
// Glib::signal_idle().connect (sigc::mem_fun(*this, &ToneCurve::autoExpComputed_));
}