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")+":")); Gtk::Label* mplabel = Gtk::manage (new Gtk::Label (M("PREFERENCES_MONITORICC")+":"));
cbAutoMonProfile = Gtk::manage (new Gtk::CheckButton (M("PREFERENCES_AUTOMONPROFILE"))); 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)); Gtk::Table* colt = Gtk::manage (new Gtk::Table (3, 2));
colt->attach (*intlab, 0, 1, 0, 1, Gtk::SHRINK, Gtk::SHRINK, 2, 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 () { void Preferences::okPressed () {
storePreferences (); storePreferences ();

View File

@@ -118,7 +118,7 @@ class Preferences : public Gtk::Dialog {
Gtk::CheckButton* ckbInternalThumbIfUntouched; Gtk::CheckButton* ckbInternalThumbIfUntouched;
Options moptions; 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 initialTheme;
Glib::ustring initialFont; Glib::ustring initialFont;
@@ -152,6 +152,7 @@ class Preferences : public Gtk::Dialog {
void okPressed (); void okPressed ();
void cancelPressed (); void cancelPressed ();
void aboutPressed (); void aboutPressed ();
void autoMonProfileToggled ();
void selectStartupDir (); void selectStartupDir ();
void addExtPressed (); void addExtPressed ();