summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/JackDriver.cpp3
-rw-r--r--src/PatchageModule.cpp19
-rw-r--r--src/PatchageModule.hpp3
-rw-r--r--wscript2
4 files changed, 7 insertions, 20 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp
index a893a3b..b60a5e1 100644
--- a/src/JackDriver.cpp
+++ b/src/JackDriver.cpp
@@ -167,6 +167,9 @@ JackDriver::create_port_view(Patchage* patchage,
PatchagePort* port = create_port(*parent, jack_port, id);
port->show();
+ if (port->is_input()) {
+ parent->set_is_source(false);
+ }
return port;
}
diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp
index b02a052..3c16352 100644
--- a/src/PatchageModule.cpp
+++ b/src/PatchageModule.cpp
@@ -32,6 +32,9 @@ PatchageModule::PatchageModule(
signal_moved().connect(
sigc::mem_fun(this, &PatchageModule::store_location));
+
+ // Set as source by default, turned off if input ports added
+ set_is_source(true);
}
PatchageModule::~PatchageModule()
@@ -134,22 +137,6 @@ PatchageModule::join()
}
void
-PatchageModule::add_port(Ganv::Port* port)
-{
- std::cerr << "FIXME: add port" << std::endl;
- //Ganv::Module::add_port(port);
- update_menu();
-}
-
-void
-PatchageModule::remove_port(Ganv::Port* port)
-{
- std::cerr << "FIXME: remove port" << std::endl;
- //Ganv::Module::remove_port(port);
- update_menu();
-}
-
-void
PatchageModule::menu_disconnect_all()
{
for (iterator p = begin(); p != end(); ++p)
diff --git a/src/PatchageModule.hpp b/src/PatchageModule.hpp
index 23a5f4a..c46cc2c 100644
--- a/src/PatchageModule.hpp
+++ b/src/PatchageModule.hpp
@@ -57,9 +57,6 @@ public:
protected:
bool on_event(GdkEvent* ev);
- void add_port(Ganv::Port* port);
- void remove_port(Ganv::Port* port);
-
Patchage* _app;
Gtk::Menu* _menu;
std::string _name;
diff --git a/wscript b/wscript
index 5599e1b..552421b 100644
--- a/wscript
+++ b/wscript
@@ -58,7 +58,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM',
atleast_version='2.12.0', mandatory=True)
autowaf.check_pkg(conf, 'ganv-1', uselib_store='GANV',
- atleast_version='1.0.0', mandatory=True)
+ atleast_version='1.2.1', mandatory=True)
if Options.platform == 'darwin':
autowaf.check_pkg(conf, 'gtk-mac-integration', uselib_store='GTK_OSX',