diff options
author | David Robillard <d@drobilla.net> | 2007-09-24 04:52:21 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-24 04:52:21 +0000 |
commit | 97faa683045e44563d25befe463e76f42c7d1a9b (patch) | |
tree | 1d1a476ee29075d835af8add80435c06bdcc9a20 /src/libs/module | |
parent | 5b706499e0a2ad3056afd2f9db1487ad169ec059 (diff) | |
download | ingen-97faa683045e44563d25befe463e76f42c7d1a9b.tar.gz ingen-97faa683045e44563d25befe463e76f42c7d1a9b.tar.bz2 ingen-97faa683045e44563d25befe463e76f42c7d1a9b.zip |
Avoid thread creation and glade stuff on module/port creation (defer until menu requested).
git-svn-id: http://svn.drobilla.net/lad/ingen@776 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/module')
-rw-r--r-- | src/libs/module/Module.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/module/Module.cpp b/src/libs/module/Module.cpp index 1c6c7788..8f445340 100644 --- a/src/libs/module/Module.cpp +++ b/src/libs/module/Module.cpp @@ -56,7 +56,7 @@ load_module(const string& name) string filename = Glib::Module::build_path(dir, name); if (Glib::file_test(filename, Glib::FILE_TEST_EXISTS)) { - module = new Glib::Module(filename, Glib::MODULE_BIND_LAZY); + module = new Glib::Module(filename, Glib::MODULE_BIND_LAZY|Glib::MODULE_BIND_LOCAL); if (*module) { return SharedPtr<Glib::Module>(module); @@ -71,7 +71,7 @@ load_module(const string& name) // Try default directory if not found module = new Glib::Module( Glib::Module::build_path(INGEN_MODULE_DIR, name), - Glib::MODULE_BIND_LAZY); + Glib::MODULE_BIND_LAZY|Glib::MODULE_BIND_LOCAL); if (*module) { return SharedPtr<Glib::Module>(module); |