Flat field: Show auto calculated clip control value in ui

This commit is contained in:
heckflosse
2018-10-24 00:49:51 +02:00
parent 8ed760c639
commit ac700502db
10 changed files with 46 additions and 8 deletions

View File

@@ -403,3 +403,21 @@ void FlatField::setShortcutPath(const Glib::ustring& path)
} catch (Glib::Error&) {}
}
void FlatField::flatFieldAutoClipValueChanged(int n)
{
struct Data {
FlatField *me;
int n;
};
const auto func = [](gpointer data) -> gboolean {
Data *d = static_cast<Data *>(data);
FlatField *me = d->me;
me->disableListener();
me->flatFieldClipControl->setValue (d->n);
me->enableListener();
return FALSE;
};
idle_register.add(func, new Data { this, n });
}