summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2017-01-18 18:21:48 -0600
committerBen Loftis <ben@harrisonconsoles.com>2017-01-18 18:25:25 -0600
commit45622aff48f315e125628b19b8b07e61f78d7021 (patch)
tree68aa790e7fbb3eb5771dff3628939437db3a9006 /gtk2_ardour/editor.cc
parentb4cf8cfc496d443d07f6198e12727c24ec588e2b (diff)
Allow editor toolbar and background to be themeable.
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc18
1 files changed, 15 insertions, 3 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index d7e65a13cc..8978a4993a 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -757,9 +757,21 @@ Editor::Editor ()
global_vpacker.set_spacing (2);
global_vpacker.set_border_width (0);
- global_vpacker.pack_start (toolbar_hbox, false, false);
- global_vpacker.pack_start (edit_pane, true, true);
- global_hpacker.pack_start (global_vpacker, true, true);
+ Gtk::EventBox* ebox = manage (new Gtk::EventBox); //a themeable box
+ ebox->set_name("EditorWindow");
+ ebox->add (toolbar_hbox);
+
+ Gtk::EventBox* epane_box = manage (new Gtk::EventBox); //a themeable box
+ epane_box->set_name("EditorWindow");
+ epane_box->add (edit_pane);
+
+ Gtk::EventBox* epane_box2 = manage (new Gtk::EventBox); //a themeable box
+ epane_box2->set_name("EditorWindow");
+ epane_box2->add (global_vpacker);
+
+ global_vpacker.pack_start (*ebox, false, false);
+ global_vpacker.pack_start (*epane_box, true, true);
+ global_hpacker.pack_start (*epane_box2, true, true);
/* need to show the "contents" widget so that notebook will show if tab is switched to
*/