From 0b70550b422a3afb5a85762e3ce223fce4ecf341 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 1 Oct 2022 19:01:30 +0200 Subject: [PATCH] Fix width of draw-grid dropdown menu --- gtk2_ardour/editor.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 0e560b4277..0d9ddde7b6 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -3303,7 +3303,6 @@ Editor::setup_toolbar () draw_velocity_selector.set_name ("mouse mode button"); draw_channel_selector.set_name ("mouse mode button"); - draw_length_selector.set_sizing_text (grid_type_strings[(int)GridTypeBeatDiv32]); draw_velocity_selector.set_sizing_text (_("Auto")); draw_channel_selector.set_sizing_text (_("Auto")); @@ -3493,6 +3492,12 @@ Editor::build_draw_midi_menus () draw_length_selector.AddMenuElem (MenuElem (grid_type_strings[(int)GridTypeBeatDiv32], sigc::bind (sigc::mem_fun(*this, &Editor::draw_length_selection_done), (GridType) GridTypeBeatDiv32))); draw_length_selector.AddMenuElem (MenuElem (_("Auto"), sigc::bind (sigc::mem_fun(*this, &Editor::draw_length_selection_done), (GridType) DRAW_LEN_AUTO))); + { + std::vector draw_grid_type_strings = {grid_type_strings.begin() + GridTypeBeat, grid_type_strings.begin() + GridTypeBeatDiv32 + 1}; + draw_grid_type_strings.push_back (_("Auto")); + grid_type_selector.set_sizing_texts (draw_grid_type_strings); + } + /* Note-Velocity when drawing */ { draw_velocity_selector.AddMenuElem (MenuElem ("8", sigc::bind (sigc::mem_fun(*this, &Editor::draw_velocity_selection_done), 8)));