Allow compilation with MSVC and sigc++ 2.3 (revert this at some point)

libsigc++ before 2.5.1 could not determine the return type
of a value unless SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
was specified.
This commit is contained in:
Robin Gareus 2023-03-31 18:12:10 +02:00
parent 4d940ce5a2
commit c362a5af8f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -51,6 +51,8 @@ using std::string;
PBD::Signal1<void,VCAMasterStrip*> VCAMasterStrip::CatchDeletion;
static bool no_propagate (GdkEventButton*) { return false; }
VCAMasterStrip::VCAMasterStrip (Session* s, std::shared_ptr<VCA> v)
: SessionHandlePtr (s)
, _vca (v)
@ -109,7 +111,7 @@ VCAMasterStrip::VCAMasterStrip (Session* s, std::shared_ptr<VCA> v)
/* horizontally centered, with a little space (5%) at the top */
vertical_button.set_angle (90);
vertical_button.set_layout_font (UIConfiguration::instance().get_NormalBoldFont());
vertical_button.signal_button_press_event().connect ([](GdkEventButton*) { return false;}, false);
vertical_button.signal_button_press_event().connect (sigc::ptr_fun (&no_propagate), false);
vertical_button.signal_button_release_event().connect (sigc::mem_fun (*this, &VCAMasterStrip::vertical_button_release), false);
vertical_button.set_fallthrough_to_parent (true);
vertical_button.set_active_color (_vca->presentation_info().color ());