**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
adj_gamma_b(2.2,0.1,3.0,0.025,0.025,0.025),
adj_recent_files(15,1,50,1,1,1),
adj_undo_depth(100,10,5000,1,1,1),
adj_gamma_b(2.2,0.1,3.0,0.025,0.025,0.025),
adj_recent_files(15,1,50,1,1,1),
adj_undo_depth(100,10,5000,1,1,1),
// Misc - use_colorspace_gamma
misc_table->attach(toggle_use_colorspace_gamma, 0, 2, 2, 3, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
// Misc - use_colorspace_gamma
misc_table->attach(toggle_use_colorspace_gamma, 0, 2, 2, 3, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
+ // Misc - single_threaded
+ misc_table->attach(toggle_single_threaded, 0, 2, 4, 5, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
+
// Set the use_colorspace_gamma flag
App::use_colorspace_gamma=toggle_use_colorspace_gamma.get_active();
// Set the use_colorspace_gamma flag
App::use_colorspace_gamma=toggle_use_colorspace_gamma.get_active();
+ // Refresh the temporary gamma; do this before adjusting the sliders,
+ // or variables will be used before their initialisation.
+ gamma_pattern.set_gamma_r(App::gamma.get_gamma_r());
+ gamma_pattern.set_gamma_g(App::gamma.get_gamma_g());
+ gamma_pattern.set_gamma_b(App::gamma.get_gamma_b());
+ gamma_pattern.set_black_level(App::gamma.get_black_level());
+ gamma_pattern.set_red_blue_level(App::gamma.get_red_blue_level());
+
adj_gamma_r.set_value(1.0/App::gamma.get_gamma_r());
adj_gamma_g.set_value(1.0/App::gamma.get_gamma_g());
adj_gamma_b.set_value(1.0/App::gamma.get_gamma_b());
black_level_selector.set_value(App::gamma.get_black_level());
red_blue_level_selector.set_value(App::gamma.get_red_blue_level());
adj_gamma_r.set_value(1.0/App::gamma.get_gamma_r());
adj_gamma_g.set_value(1.0/App::gamma.get_gamma_g());
adj_gamma_b.set_value(1.0/App::gamma.get_gamma_b());
black_level_selector.set_value(App::gamma.get_black_level());
red_blue_level_selector.set_value(App::gamma.get_red_blue_level());
- // Refresh the temporary gamma
- gamma_pattern.set_gamma_r(1.0/adj_gamma_r.get_value());
- gamma_pattern.set_gamma_g(1.0/adj_gamma_g.get_value());
- gamma_pattern.set_gamma_b(1.0/adj_gamma_b.get_value());
- gamma_pattern.set_black_level(black_level_selector.get_value());
- gamma_pattern.set_red_blue_level(red_blue_level_selector.get_value());
// Refresh the status of the use_colorspace_gamma flag
toggle_use_colorspace_gamma.set_active(App::use_colorspace_gamma);
// Refresh the status of the use_colorspace_gamma flag
toggle_use_colorspace_gamma.set_active(App::use_colorspace_gamma);