summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeMenu.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-09-23 00:25:59 -0400
committerDavid Robillard <d@drobilla.net>2023-09-23 00:25:59 -0400
commit607f8d1b51f28dba773a1304b0a46314a326bf09 (patch)
tree1cb03517e1f5246d8822b6af639d357b6b41f3b2 /src/gui/NodeMenu.hpp
parent11b57c89ea8e7d1333f859515233484ac9749729 (diff)
downloadingen-607f8d1b51f28dba773a1304b0a46314a326bf09.tar.gz
ingen-607f8d1b51f28dba773a1304b0a46314a326bf09.tar.bz2
ingen-607f8d1b51f28dba773a1304b0a46314a326bf09.zip
Clean up includes and forward declarations
Diffstat (limited to 'src/gui/NodeMenu.hpp')
-rw-r--r--src/gui/NodeMenu.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/NodeMenu.hpp b/src/gui/NodeMenu.hpp
index f109c3e4..7168bc7a 100644
--- a/src/gui/NodeMenu.hpp
+++ b/src/gui/NodeMenu.hpp
@@ -21,7 +21,6 @@
#include "ingen/URI.hpp"
-#include <gtkmm/menu.h>
#include <sigc++/connection.h>
#include <sigc++/signal.h>
@@ -35,6 +34,7 @@ template <class T> class RefPtr;
namespace Gtk {
class Builder;
class CheckMenuItem;
+class Menu;
class MenuItem;
} // namespace Gtk
@@ -66,9 +66,7 @@ public:
sigc::signal<void, bool> signal_embed_gui;
protected:
- std::shared_ptr<const client::BlockModel> block() const {
- return std::dynamic_pointer_cast<const client::BlockModel>(_object);
- }
+ std::shared_ptr<const client::BlockModel> block() const;
void add_preset(const URI& uri, const std::string& label);