From 656a92cb8e9d65073a6dce0ca9fa67bb03bc4fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=B6ssie?= Date: Mon, 15 Jan 2018 17:54:15 +0100 Subject: [PATCH] Fix openSUSE build once again (fixes #4307) --- rtgui/colortoning.cc | 8 +++++++- rtgui/colortoning.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/rtgui/colortoning.cc b/rtgui/colortoning.cc index 2ca099769..3d3d21d66 100644 --- a/rtgui/colortoning.cc +++ b/rtgui/colortoning.cc @@ -331,7 +331,7 @@ ColorToning::ColorToning () : FoldableToolPanel(this, "colortoning", M("TP_COLOR labgridReset->get_style_context()->add_class(GTK_STYLE_CLASS_FLAT); labgridReset->set_can_focus(false); labgridReset->set_size_request(-1, 20); - labgridReset->signal_button_release_event().connect([=](GdkEventButton* release_event) { labgrid->reset(release_event->state & GDK_CONTROL_MASK ? true : false); return false; }); + labgridReset->signal_button_release_event().connect(sigc::mem_fun(*this, &ColorToning::resetPressed)); labgridBox->pack_start(*labgridReset, false, false); pack_start(*labgridBox, Gtk::PACK_EXPAND_WIDGET, 4); //------------------------------------------------------------------------ @@ -1165,3 +1165,9 @@ void ColorToning::setBatchMode (bool batchMode) cl2CurveEditorG->setBatchMode (batchMode); } + +bool ColorToning::resetPressed(GdkEventButton* event) +{ + labgrid->reset(event->state & GDK_CONTROL_MASK); + return false; +} diff --git a/rtgui/colortoning.h b/rtgui/colortoning.h index 588e6ee3b..73ac1dff2 100644 --- a/rtgui/colortoning.h +++ b/rtgui/colortoning.h @@ -53,6 +53,8 @@ public: void setListener(ToolPanelListener *tpl); private: + bool resetPressed(GdkEventButton* event); + //Gtk::HSeparator* satLimiterSep; Gtk::HSeparator* colorSep; CurveEditorGroup* colorCurveEditorG;