Update Mixer-strip width when scaling UI

This commit is contained in:
Robin Gareus
2025-03-06 19:27:18 +01:00
parent f3ec590eb5
commit 7b1157e536
2 changed files with 8 additions and 0 deletions

View File

@@ -426,6 +426,7 @@ MixerStrip::init ()
parameter_changed (X_("mixer-element-visibility"));
UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &MixerStrip::parameter_changed));
UIConfiguration::instance().DPIReset.connect (sigc::mem_fun (*this, &MixerStrip::dpi_reset));
Config->ParameterChanged.connect (_config_connection, invalidator (*this), std::bind (&MixerStrip::parameter_changed, this, _1), gui_context());
_session->config.ParameterChanged.connect (_config_connection, invalidator (*this), std::bind (&MixerStrip::parameter_changed, this, _1), gui_context());
@@ -788,6 +789,12 @@ MixerStrip::set_stuff_from_route ()
}
}
void
MixerStrip::dpi_reset ()
{
set_width_enum (_width, _width_owner);
}
void
MixerStrip::set_width_enum (Width w, void* owner)
{

View File

@@ -281,6 +281,7 @@ private:
void route_property_changed (const PBD::PropertyChange&);
void name_button_resized (Gtk::Allocation&);
void name_changed ();
void dpi_reset ();
void update_speed_display ();
void map_frozen ();
void hide_processor_editor (std::weak_ptr<ARDOUR::Processor> processor);