Tweaked auto mon profile preferences; see forum thread #2711
This commit is contained in:
@@ -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 ();
|
||||
|
@@ -118,7 +118,7 @@ class Preferences : public Gtk::Dialog {
|
||||
Gtk::CheckButton* ckbInternalThumbIfUntouched;
|
||||
|
||||
Options moptions;
|
||||
sigc::connection tconn, fconn, usethcon, addc, setc, dfconn, ffconn;
|
||||
sigc::connection tconn, fconn, usethcon, addc, setc, dfconn, ffconn, autoMonProfileConn;
|
||||
Glib::ustring initialTheme;
|
||||
Glib::ustring initialFont;
|
||||
|
||||
@@ -152,6 +152,7 @@ class Preferences : public Gtk::Dialog {
|
||||
void okPressed ();
|
||||
void cancelPressed ();
|
||||
void aboutPressed ();
|
||||
void autoMonProfileToggled ();
|
||||
|
||||
void selectStartupDir ();
|
||||
void addExtPressed ();
|
||||
|
Reference in New Issue
Block a user