diff options
Diffstat (limited to 'src/libs/gui/PatchPortModule.cpp')
-rw-r--r-- | src/libs/gui/PatchPortModule.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/libs/gui/PatchPortModule.cpp b/src/libs/gui/PatchPortModule.cpp index 863fc55e..f686079d 100644 --- a/src/libs/gui/PatchPortModule.cpp +++ b/src/libs/gui/PatchPortModule.cpp @@ -15,8 +15,8 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "PatchPortModule.hpp" #include <cassert> +#include "PatchPortModule.hpp" #include "interface/EngineInterface.hpp" #include "client/PatchModel.hpp" #include "client/NodeModel.hpp" @@ -27,6 +27,7 @@ #include "RenameWindow.hpp" #include "PatchWindow.hpp" #include "WindowFactory.hpp" +#include "PortMenu.hpp" namespace Ingen { namespace GUI { @@ -85,6 +86,17 @@ PatchPortModule::create(boost::shared_ptr<PatchCanvas> canvas, SharedPtr<PortMod void +PatchPortModule::create_menu() +{ + Glib::RefPtr<Gnome::Glade::Xml> xml = GladeFactory::new_glade_reference(); + xml->get_widget_derived("object_menu", _menu); + _menu->init(_port); + + set_menu(_menu); +} + + +void PatchPortModule::store_location() { const float x = static_cast<float>(property_x()); |