From 46a8073ff282399d562189cef7835c628a90e8c6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 22 Jan 2023 17:34:25 -0700 Subject: [PATCH] extend ArdourWidgets::Frame to allow no-draw of frame Associated: disambiguate Frame use where necessary. --- gtk2_ardour/plugin_manager_ui.cc | 8 +- libs/widgets/frame.cc | 193 +++++++++++++++++-------------- libs/widgets/widgets/frame.h | 4 + 3 files changed, 111 insertions(+), 94 deletions(-) diff --git a/gtk2_ardour/plugin_manager_ui.cc b/gtk2_ardour/plugin_manager_ui.cc index 3d7db836c6..e6a46ea8f2 100644 --- a/gtk2_ardour/plugin_manager_ui.cc +++ b/gtk2_ardour/plugin_manager_ui.cc @@ -167,10 +167,10 @@ PluginManagerUI::PluginManagerUI () _pane.set_divider (0, .85); Label* lbl = manage (new Label ("")); // spacer - Frame* f_info = manage (new Frame (_("Plugin Count"))); - Frame* f_paths = manage (new Frame (_("Preferences"))); - Frame* f_search = manage (new Frame (_("Search"))); - Frame* f_actions = manage (new Frame (_("Scan Actions"))); + Gtk::Frame* f_info = manage (new Gtk::Frame (_("Plugin Count"))); + Gtk::Frame* f_paths = manage (new Gtk::Frame (_("Preferences"))); + Gtk::Frame* f_search = manage (new Gtk::Frame (_("Search"))); + Gtk::Frame* f_actions = manage (new Gtk::Frame (_("Scan Actions"))); VBox* b_paths = manage (new VBox ()); VBox* b_actions = manage (new VBox ()); diff --git a/libs/widgets/frame.cc b/libs/widgets/frame.cc index 05b0e9a6e6..8068ccb83d 100644 --- a/libs/widgets/frame.cc +++ b/libs/widgets/frame.cc @@ -42,6 +42,7 @@ Frame::Frame (Orientation orientation, bool boxy) , _alloc_x0 (0) , _alloc_y0 (0) , _boxy (boxy) + , _draw (true) { set_name ("Frame"); ensure_style (); @@ -213,104 +214,107 @@ Frame::get_parent_style () bool Frame::on_expose_event (GdkEventExpose* ev) { - Glib::RefPtr