mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
work work on window mgmt: offer the change to mark all floating windows as Dialogs (in th theme manager), and mark ArdourWindow and ArdourDialog as transient-for on creation, based on current WindowManager (ardour-object) settings
This commit is contained in:
parent
a902737db9
commit
87d502c15b
8 changed files with 58 additions and 8 deletions
|
|
@ -102,8 +102,21 @@ ArdourWindow::init ()
|
|||
vice versa.
|
||||
*/
|
||||
|
||||
set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY);
|
||||
if (ARDOUR_UI::instance()->config()->all_floating_windows_are_dialogs.get()) {
|
||||
cerr << "AW " << get_title() << " => dialog\n";
|
||||
set_type_hint (Gdk::WINDOW_TYPE_HINT_DIALOG);
|
||||
} else {
|
||||
cerr << "AW " << get_title() << " => utility\n";
|
||||
set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY);
|
||||
}
|
||||
|
||||
Gtk::Window* parent = WindowManager::instance().transient_parent();
|
||||
|
||||
if (parent) {
|
||||
cerr << "\tmarked as transient for " << parent->get_title() << endl;
|
||||
set_transient_for (*parent);
|
||||
}
|
||||
|
||||
ARDOUR_UI::CloseAllDialogs.connect (sigc::mem_fun (*this, &ArdourWindow::hide));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue