Reduce #includes - avoid ardour_ui.h

This commit is contained in:
Robin Gareus 2019-03-08 01:53:55 +01:00
parent d42c0f2d60
commit 2e5daf2eeb
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
7 changed files with 49 additions and 12 deletions

View file

@ -24,7 +24,7 @@
#include <gtkmm/menu.h>
#include <gtkmm/menuitem.h>
#include "ardour_ui.h"
#include "context_menu_helper.h"
#include "time_axis_view.h"
#include "streamview.h"
#include "editor_summary.h"
@ -462,7 +462,7 @@ EditorSummary::on_button_press_event (GdkEventButton* ev)
if (ev->button == 3) { // right-click: show the reset menu action
using namespace Gtk::Menu_Helpers;
Gtk::Menu* m = ARDOUR_UI::instance()->shared_popup_menu ();
Gtk::Menu* m = ARDOUR_UI_UTILS::shared_popup_menu ();
MenuList& items = m->items ();
items.push_back(MenuElem(_("Reset Summary to Extents"),
sigc::mem_fun(*this, &EditorSummary::reset_to_extents)));