Merge branch 'master' into softproofing
This commit is contained in:
@@ -609,9 +609,10 @@ Gtk::Widget* Preferences::getPerformancePanel ()
|
||||
rgbDenoiseTreadLimitSB->set_digits (0);
|
||||
rgbDenoiseTreadLimitSB->set_increments (1, 5);
|
||||
rgbDenoiseTreadLimitSB->set_max_length(2); // Will this be sufficient? :)
|
||||
int maxThreadNumber = 10;
|
||||
#ifdef _OPENMP
|
||||
maxThreadNumber = omp_get_max_threads();
|
||||
int maxThreadNumber = omp_get_max_threads();
|
||||
#else
|
||||
int maxThreadNumber = 10;
|
||||
#endif
|
||||
rgbDenoiseTreadLimitSB->set_range (0, maxThreadNumber);
|
||||
threadLimitHB->pack_start (*RGBDTLl, Gtk::PACK_SHRINK, 2);
|
||||
@@ -937,14 +938,21 @@ Gtk::Widget* Preferences::getGeneralPanel ()
|
||||
hbtheme->pack_start (*fontbutton);
|
||||
vbftheme->pack_start(*hbtheme, Gtk::PACK_SHRINK, 0);
|
||||
|
||||
Gtk::Label* cpfontlab = Gtk::manage( new Gtk::Label (M("PREFERENCES_SELECTFONT_COLPICKER") + ":") );
|
||||
colorPickerFontButton = Gtk::manage( new Gtk::FontButton ());
|
||||
colorPickerFontButton->set_use_size(true);
|
||||
colorPickerFontButton->set_font_name(options.colorPickerFont);
|
||||
|
||||
|
||||
Gtk::HBox* hbcolorchooser = Gtk::manage( new Gtk::HBox () );
|
||||
hbcolorchooser->set_spacing(4);
|
||||
|
||||
hbcolorchooser->pack_start (*cutOverlayLabel, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_start (*butCropCol, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_end (*butNavGuideCol, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_end (*navGuideLabel, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_start (*butNavGuideCol, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_start (*navGuideLabel, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_start (*cpfontlab, Gtk::PACK_EXPAND_WIDGET, 0);
|
||||
hbcolorchooser->pack_start (*colorPickerFontButton, Gtk::PACK_SHRINK, 0);
|
||||
vbftheme->pack_start(*hbcolorchooser, Gtk::PACK_SHRINK, 0);
|
||||
|
||||
|
||||
@@ -1420,6 +1428,7 @@ void Preferences::storePreferences ()
|
||||
moptions.navGuideBrush[3] = butNavGuideCol->get_alpha() / 65535.0;
|
||||
|
||||
moptions.font = fontbutton->get_font_name();
|
||||
moptions.colorPickerFont = colorPickerFontButton->get_font_name();
|
||||
#ifdef WIN32
|
||||
moptions.gimpDir = gimpDir->get_filename ();
|
||||
moptions.psDir = psDir->get_filename ();
|
||||
@@ -1637,6 +1646,7 @@ void Preferences::fillPreferences ()
|
||||
butNavGuideCol->set_alpha ( (unsigned short)(moptions.navGuideBrush[3] * 65535.0));
|
||||
|
||||
fontbutton->set_font_name(moptions.font);
|
||||
colorPickerFontButton->set_font_name(moptions.colorPickerFont);
|
||||
showDateTime->set_active (moptions.fbShowDateTime);
|
||||
showBasicExif->set_active (moptions.fbShowBasicExif);
|
||||
showExpComp->set_active (moptions.fbShowExpComp);
|
||||
|
Reference in New Issue
Block a user