summaryrefslogtreecommitdiff
path: root/src/wx/colour_conversion_editor.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-11-02 00:18:56 +0100
committerCarl Hetherington <cth@carlh.net>2022-11-02 01:17:53 +0100
commitb39dbb7cf1b0352cf0eb3af4bf4929556355bff5 (patch)
treee679b163406b863dbbc04c4635393973b33929ec /src/wx/colour_conversion_editor.cc
parent9c6d757fc6ff188521719cad9bf2cd494bb4edd8 (diff)
Cleanup: use new CheckBox::bind().
Diffstat (limited to 'src/wx/colour_conversion_editor.cc')
-rw-r--r--src/wx/colour_conversion_editor.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/colour_conversion_editor.cc b/src/wx/colour_conversion_editor.cc
index 4cc9aaa9e..686238c55 100644
--- a/src/wx/colour_conversion_editor.cc
+++ b/src/wx/colour_conversion_editor.cc
@@ -223,7 +223,7 @@ ColourConversionEditor::ColourConversionEditor (wxWindow* parent, bool yuv)
_input_power->SetIncrement (0.1);
_input->Bind (wxEVT_CHOICE, bind (&ColourConversionEditor::changed, this));
- _input_gamma->Bind (wxEVT_SPINCTRLDOUBLE, bind (&ColourConversionEditor::changed, this, _input_gamma));
+ _input_gamma->Bind(wxEVT_SPINCTRLDOUBLE, bind(&ColourConversionEditor::spin_ctrl_changed, this, _input_gamma));
_input_power->Bind (wxEVT_TEXT, bind (&ColourConversionEditor::changed, this));
_input_threshold->Bind (wxEVT_TEXT, bind (&ColourConversionEditor::changed, this));
_input_A->Bind (wxEVT_TEXT, bind (&ColourConversionEditor::changed, this));
@@ -236,11 +236,11 @@ ColourConversionEditor::ColourConversionEditor (wxWindow* parent, bool yuv)
_blue_y->Bind (wxEVT_TEXT, bind (&ColourConversionEditor::chromaticity_changed, this));
_white_x->Bind (wxEVT_TEXT, bind (&ColourConversionEditor::chromaticity_changed, this));
_white_y->Bind (wxEVT_TEXT, bind (&ColourConversionEditor::chromaticity_changed, this));
- _adjust_white->Bind (wxEVT_CHECKBOX, bind (&ColourConversionEditor::adjusted_white_changed, this));
+ _adjust_white->bind(&ColourConversionEditor::adjusted_white_changed, this);
_adjusted_white_x->Bind (wxEVT_TEXT, bind (&ColourConversionEditor::adjusted_white_changed, this));
_adjusted_white_y->Bind (wxEVT_TEXT, bind (&ColourConversionEditor::adjusted_white_changed, this));
_yuv_to_rgb->Bind (wxEVT_CHOICE, bind (&ColourConversionEditor::changed, this));
- _output->Bind (wxEVT_CHECKBOX, bind (&ColourConversionEditor::changed, this));
+ _output->bind(&ColourConversionEditor::changed, this);
}
@@ -449,7 +449,7 @@ ColourConversionEditor::update_rgb_to_xyz ()
void
-ColourConversionEditor::changed (wxSpinCtrlDouble* sc)
+ColourConversionEditor::spin_ctrl_changed(wxSpinCtrlDouble* sc)
{
/* On OS X, it seems that in some cases when a wxSpinCtrlDouble loses focus
it emits an erroneous changed signal, which messes things up.