summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/WindowFactory.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-06 19:04:11 +0000
committerDavid Robillard <d@drobilla.net>2007-10-06 19:04:11 +0000
commit25fd375c074c45929f71d6b9ca4841882c832b05 (patch)
tree9302aa2ccaf627fd58bc458b7ebe4902e80c5817 /src/libs/gui/WindowFactory.cpp
parenta3a7891b56783dbcf916dde56f92830433f659e2 (diff)
downloadingen-25fd375c074c45929f71d6b9ca4841882c832b05.tar.gz
ingen-25fd375c074c45929f71d6b9ca4841882c832b05.tar.bz2
ingen-25fd375c074c45929f71d6b9ca4841882c832b05.zip
Fix building without libcurl.
git-svn-id: http://svn.drobilla.net/lad/ingen@831 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/WindowFactory.cpp')
-rw-r--r--src/libs/gui/WindowFactory.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libs/gui/WindowFactory.cpp b/src/libs/gui/WindowFactory.cpp
index 456cdb04..096bb9df 100644
--- a/src/libs/gui/WindowFactory.cpp
+++ b/src/libs/gui/WindowFactory.cpp
@@ -15,6 +15,7 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include CONFIG_H_PATH
#include "WindowFactory.hpp"
#include "App.hpp"
#include "PatchWindow.hpp"
@@ -25,10 +26,12 @@
#include "LoadPluginWindow.hpp"
#include "LoadPatchWindow.hpp"
#include "LoadRemotePatchWindow.hpp"
-#include "UploadPatchWindow.hpp"
#include "LoadSubpatchWindow.hpp"
#include "RenameWindow.hpp"
#include "NewSubpatchWindow.hpp"
+#ifdef HAVE_CURL
+#include "UploadPatchWindow.hpp"
+#endif
namespace Ingen {
namespace GUI {
@@ -49,12 +52,15 @@ WindowFactory::WindowFactory()
xml->get_widget_derived("load_plugin_win", _load_plugin_win);
xml->get_widget_derived("load_patch_win", _load_patch_win);
xml->get_widget_derived("load_remote_patch_win", _load_remote_patch_win);
- xml->get_widget_derived("upload_patch_win", _upload_patch_win);
xml->get_widget_derived("new_subpatch_win", _new_subpatch_win);
xml->get_widget_derived("load_subpatch_win", _load_subpatch_win);
xml->get_widget_derived("node_properties_win", _node_properties_win);
xml->get_widget_derived("patch_properties_win", _patch_properties_win);
xml->get_widget_derived("rename_win", _rename_win);
+
+#ifdef HAVE_CURL
+ xml->get_widget_derived("upload_patch_win", _upload_patch_win);
+#endif
}
@@ -286,12 +292,14 @@ WindowFactory::present_load_remote_patch(SharedPtr<PatchModel> patch, MetadataMa
void
WindowFactory::present_upload_patch(SharedPtr<PatchModel> patch)
{
+#ifdef HAVE_CURL
PatchWindowMap::iterator w = _patch_windows.find(patch->path());
if (w != _patch_windows.end())
_upload_patch_win->set_transient_for(*w->second);
_upload_patch_win->present(patch);
+#endif
}