mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 20:29:35 +01:00
fix handling of MIDI draw tool actions and widgets
The actions and draw_xxx values are now "static", and changes in the values are notified via a static PBD::Signal so that each EditingContext can update the appearance of its relevant widgets. Note also wider use of lambdas when creating actions and menu items.
This commit is contained in:
parent
3224b37702
commit
4bbdbc6d13
4 changed files with 148 additions and 129 deletions
|
|
@ -140,7 +140,6 @@ MidiCueEditor::setup_toolbar ()
|
|||
Gtk::Alignment* mouse_mode_align = manage (new Gtk::Alignment);
|
||||
|
||||
Glib::RefPtr<Gtk::SizeGroup> mouse_mode_size_group = Gtk::SizeGroup::create (Gtk::SIZE_GROUP_VERTICAL);
|
||||
mouse_mode_size_group->add_widget (mouse_move_button);
|
||||
mouse_mode_size_group->add_widget (mouse_draw_button);
|
||||
mouse_mode_size_group->add_widget (mouse_content_button);
|
||||
|
||||
|
|
@ -151,7 +150,6 @@ MidiCueEditor::setup_toolbar ()
|
|||
mouse_mode_size_group->add_widget (snap_mode_button);
|
||||
|
||||
mouse_mode_hbox->set_spacing (2);
|
||||
mouse_mode_hbox->pack_start (mouse_move_button, false, false);
|
||||
mouse_mode_hbox->pack_start (mouse_draw_button, false, false);
|
||||
mouse_mode_hbox->pack_start (mouse_content_button, false, false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue