Hide draw-tools spacer when draw-tools are hidden
This commit is contained in:
parent
452eedc994
commit
3a98d6133c
@ -3369,7 +3369,7 @@ Editor::setup_toolbar ()
|
|||||||
toolbar_hbox.pack_start (snap_box, false, false);
|
toolbar_hbox.pack_start (snap_box, false, false);
|
||||||
toolbar_hbox.pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
|
toolbar_hbox.pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
|
||||||
toolbar_hbox.pack_start (*nudge_box, false, false);
|
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_start (draw_box, false, false);
|
||||||
toolbar_hbox.pack_end (_zoom_box, false, false, 2);
|
toolbar_hbox.pack_end (_zoom_box, false, false, 2);
|
||||||
toolbar_hbox.pack_end (*(manage (new ArdourVSpacer ())), false, false, 3);
|
toolbar_hbox.pack_end (*(manage (new ArdourVSpacer ())), false, false, 3);
|
||||||
|
@ -65,6 +65,7 @@
|
|||||||
|
|
||||||
#include "widgets/ardour_button.h"
|
#include "widgets/ardour_button.h"
|
||||||
#include "widgets/ardour_dropdown.h"
|
#include "widgets/ardour_dropdown.h"
|
||||||
|
#include "widgets/ardour_spacer.h"
|
||||||
#include "widgets/pane.h"
|
#include "widgets/pane.h"
|
||||||
|
|
||||||
#include "ardour_dialog.h"
|
#include "ardour_dialog.h"
|
||||||
@ -1975,6 +1976,8 @@ private:
|
|||||||
Gtk::HBox snap_box;
|
Gtk::HBox snap_box;
|
||||||
Gtk::HBox draw_box;
|
Gtk::HBox draw_box;
|
||||||
|
|
||||||
|
ArdourWidgets::ArdourVSpacer _draw_box_spacer;
|
||||||
|
|
||||||
Gtk::HBox ebox_hpacker;
|
Gtk::HBox ebox_hpacker;
|
||||||
Gtk::VBox ebox_vpacker;
|
Gtk::VBox ebox_vpacker;
|
||||||
|
|
||||||
|
@ -369,8 +369,10 @@ Editor::mouse_mode_toggled (MouseMode m)
|
|||||||
|
|
||||||
if (mouse_mode == MouseDraw) {
|
if (mouse_mode == MouseDraw) {
|
||||||
draw_box.show();
|
draw_box.show();
|
||||||
|
_draw_box_spacer.show();
|
||||||
} else {
|
} else {
|
||||||
draw_box.hide();
|
draw_box.hide();
|
||||||
|
_draw_box_spacer.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user