mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
keep meterbridge on top of editor - see #6386
This commit is contained in:
parent
0613a02e10
commit
0cd1db76f0
2 changed files with 5 additions and 1 deletions
|
|
@ -402,6 +402,10 @@ ARDOUR_UI::toggle_meterbridge ()
|
||||||
|
|
||||||
if (tact->get_active()) {
|
if (tact->get_active()) {
|
||||||
meterbridge->show_window ();
|
meterbridge->show_window ();
|
||||||
|
meterbridge->present ();
|
||||||
|
if (editor) {
|
||||||
|
meterbridge->set_transient_for (*editor);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
meterbridge->hide_window (NULL);
|
meterbridge->hide_window (NULL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,6 @@ Meterbridge::Meterbridge ()
|
||||||
assert(max_height % 16 == 0);
|
assert(max_height % 16 == 0);
|
||||||
set_geometry_hints(*((Gtk::Window*) this), geom, Gdk::HINT_MIN_SIZE | Gdk::HINT_MAX_SIZE | Gdk::HINT_RESIZE_INC);
|
set_geometry_hints(*((Gtk::Window*) this), geom, Gdk::HINT_MIN_SIZE | Gdk::HINT_MAX_SIZE | Gdk::HINT_RESIZE_INC);
|
||||||
|
|
||||||
set_keep_above (true);
|
|
||||||
set_border_width (0);
|
set_border_width (0);
|
||||||
|
|
||||||
metrics_vpacker_left.pack_start (metrics_left, true, true);
|
metrics_vpacker_left.pack_start (metrics_left, true, true);
|
||||||
|
|
@ -439,6 +438,7 @@ Meterbridge::set_session (Session* s)
|
||||||
|
|
||||||
if (_visible) {
|
if (_visible) {
|
||||||
show_window();
|
show_window();
|
||||||
|
present ();
|
||||||
ActionManager::check_toggleaction ("<Actions>/Common/toggle-meterbridge");
|
ActionManager::check_toggleaction ("<Actions>/Common/toggle-meterbridge");
|
||||||
}
|
}
|
||||||
start_updating ();
|
start_updating ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue