mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-27 00:47:43 +01:00
[Summary] Extending XMLing of UI
This commit is contained in:
parent
45cffad8e3
commit
6c9e0d2cd4
2 changed files with 11 additions and 2 deletions
|
|
@ -103,6 +103,7 @@ WavesDialog::WavesDialog (const std::string& layout_script_file, bool modal, boo
|
|||
|
||||
double opacity = xml_property (*xml_tree ()->root (), "ui.opacity", 1.0);
|
||||
set_opacity (opacity);
|
||||
set_modal (xml_property (*xml_tree ()->root (), "ui.dialog.modal", true));
|
||||
}
|
||||
|
||||
WavesDialog::~WavesDialog ()
|
||||
|
|
@ -121,7 +122,15 @@ void
|
|||
WavesDialog::on_realize ()
|
||||
{
|
||||
Gtk::Dialog::on_realize();
|
||||
get_window()->set_decorations (Gdk::WMDecoration (Gdk::DECOR_BORDER|Gdk::DECOR_TITLE));
|
||||
Gdk::WMDecoration decoration (Gdk::DECOR_BORDER|Gdk::DECOR_TITLE);
|
||||
if (xml_property (*xml_tree ()->root (), "ui.decor.menu", false)) {
|
||||
decoration |= Gdk::DECOR_MENU;
|
||||
}
|
||||
if (xml_property (*xml_tree ()->root (), "ui.decor.resize", false)) {
|
||||
decoration |= Gdk::DECOR_RESIZEH;
|
||||
}
|
||||
|
||||
get_window()->set_decorations (decoration);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
|
|
@ -1009,7 +1009,7 @@ WavesUI::set_attributes (Gtk::Widget& widget, const XMLNode& definition, const X
|
|||
|
||||
Gtk::TreeView* tree_view = dynamic_cast<Gtk::TreeView*> (&widget);
|
||||
if (tree_view) {
|
||||
if (xml_property (definition, "hscroll", styles, false)) {
|
||||
if (xml_property (definition, "headersvisible", styles, false)) {
|
||||
tree_view->set_headers_visible (true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue