Tweaked auto mon profile preferences; see forum thread #2711

This commit is contained in:
Oliver Duis
2011-03-21 18:55:28 +01:00
parent 2a7d31794c
commit 825cd3a3c9
2 changed files with 7 additions and 1 deletions

View File

@@ -344,6 +344,7 @@ Gtk::Widget* Preferences::getColorManagementPanel () {
Gtk::Label* mplabel = Gtk::manage (new Gtk::Label (M("PREFERENCES_MONITORICC")+":"));
cbAutoMonProfile = Gtk::manage (new Gtk::CheckButton (M("PREFERENCES_AUTOMONPROFILE")));
autoMonProfileConn = cbAutoMonProfile->signal_toggled().connect (sigc::mem_fun(*this, &Preferences::autoMonProfileToggled));
Gtk::Table* colt = Gtk::manage (new Gtk::Table (3, 2));
colt->attach (*intlab, 0, 1, 0, 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
@@ -1025,6 +1026,10 @@ void Preferences::savePressed () {
}
*/
void Preferences::autoMonProfileToggled () {
monProfile->set_sensitive(!cbAutoMonProfile->get_active());
}
void Preferences::okPressed () {
storePreferences ();