diff options
author | Robin Gareus <robin@gareus.org> | 2019-11-19 02:47:11 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-11-19 04:41:06 +0100 |
commit | 605a87f402c9e7ddf91f36713ce7c793d2ebb41b (patch) | |
tree | f50d357c373fe0d9398c655cd2e3d9324ab3d5a7 /gtk2_ardour/ardour_ui_dependents.cc | |
parent | c07db6d655441f9d1efc9c70d5c33ca733d355f9 (diff) |
Improve toolbar layout consistency
Directly pack Lua Script buttons into top-level table,
use same size-constraints.
Use consistent Lua Action button width, in particular for buttons 10..12.
prefer "a" instead of "10" for default numeric label
Diffstat (limited to 'gtk2_ardour/ardour_ui_dependents.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_dependents.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk2_ardour/ardour_ui_dependents.cc b/gtk2_ardour/ardour_ui_dependents.cc index 7ff9281a70..2edef6bce3 100644 --- a/gtk2_ardour/ardour_ui_dependents.cc +++ b/gtk2_ardour/ardour_ui_dependents.cc @@ -303,7 +303,7 @@ ARDOUR_UI::setup_windows () std::string const a = string_compose (X_("script-action-%1"), i + 1); Glib::RefPtr<Action> act = ActionManager::get_action(X_("LuaAction"), a.c_str()); assert (act); - action_script_call_btn[i].set_text (string_compose ("%1", i+1)); + action_script_call_btn[i].set_text (string_compose ("%1%2", std::hex, i+1)); action_script_call_btn[i].set_related_action (act); action_script_call_btn[i].signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::bind_lua_action_script), i), false); if (act->get_sensitive ()) { @@ -311,12 +311,9 @@ ARDOUR_UI::setup_windows () } else { action_script_call_btn[i].set_visual_state (Gtkmm2ext::VisualState (action_script_call_btn[i].visual_state() | Gtkmm2ext::Insensitive)); } - const int row = i % 2; - const int col = i / 2; - action_script_table.attach (action_script_call_btn[i], col, col + 1, row, row + 1, EXPAND, EXPAND, 1, 0); + action_script_call_btn[i].set_sizing_text ("|||"); action_script_call_btn[i].set_no_show_all (); } - action_script_table.show (); setup_transport(); build_menu_bar (); |