mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Hide draw-tools spacer when draw-tools are hidden
This commit is contained in:
parent
452eedc994
commit
3a98d6133c
3 changed files with 6 additions and 1 deletions
|
|
@ -3369,7 +3369,7 @@ Editor::setup_toolbar ()
|
|||
toolbar_hbox.pack_start (snap_box, false, false);
|
||||
toolbar_hbox.pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
|
||||
toolbar_hbox.pack_start (*nudge_box, false, false);
|
||||
toolbar_hbox.pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
|
||||
toolbar_hbox.pack_start (_draw_box_spacer, false, false, 3);
|
||||
toolbar_hbox.pack_start (draw_box, false, false);
|
||||
toolbar_hbox.pack_end (_zoom_box, false, false, 2);
|
||||
toolbar_hbox.pack_end (*(manage (new ArdourVSpacer ())), false, false, 3);
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@
|
|||
|
||||
#include "widgets/ardour_button.h"
|
||||
#include "widgets/ardour_dropdown.h"
|
||||
#include "widgets/ardour_spacer.h"
|
||||
#include "widgets/pane.h"
|
||||
|
||||
#include "ardour_dialog.h"
|
||||
|
|
@ -1975,6 +1976,8 @@ private:
|
|||
Gtk::HBox snap_box;
|
||||
Gtk::HBox draw_box;
|
||||
|
||||
ArdourWidgets::ArdourVSpacer _draw_box_spacer;
|
||||
|
||||
Gtk::HBox ebox_hpacker;
|
||||
Gtk::VBox ebox_vpacker;
|
||||
|
||||
|
|
|
|||
|
|
@ -369,8 +369,10 @@ Editor::mouse_mode_toggled (MouseMode m)
|
|||
|
||||
if (mouse_mode == MouseDraw) {
|
||||
draw_box.show();
|
||||
_draw_box_spacer.show();
|
||||
} else {
|
||||
draw_box.hide();
|
||||
_draw_box_spacer.hide();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue