summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/NodeMenu.cpp22
-rw-r--r--src/gui/RenameWindow.cpp2
2 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp
index 25986038..b9b6467c 100644
--- a/src/gui/NodeMenu.cpp
+++ b/src/gui/NodeMenu.cpp
@@ -15,14 +15,17 @@
*/
#include <gtkmm.h>
+
#include "ingen/Interface.hpp"
-#include "ingen/shared/LV2URIMap.hpp"
#include "ingen/client/NodeModel.hpp"
#include "ingen/client/PluginModel.hpp"
+#include "ingen/shared/LV2URIMap.hpp"
+#include "lv2/lv2plug.in/ns/ext/presets/presets.h"
+
#include "App.hpp"
#include "NodeMenu.hpp"
-#include "WindowFactory.hpp"
#include "WidgetFactory.hpp"
+#include "WindowFactory.hpp"
using namespace std;
using namespace Ingen::Client;
@@ -165,15 +168,12 @@ NodeMenu::on_preset_activated(const std::string& uri)
const NodeModel* const node = (NodeModel*)_object.get();
const PluginModel* const plugin = dynamic_cast<const PluginModel*>(node->plugin());
- LilvNode* port_pred = lilv_new_uri(
- plugin->lilv_world(),
- "http://lv2plug.in/ns/lv2core#port");
- LilvNode* symbol_pred = lilv_new_uri(
- plugin->lilv_world(),
- "http://lv2plug.in/ns/lv2core#symbol");
- LilvNode* value_pred = lilv_new_uri(
- plugin->lilv_world(),
- "http://lv2plug.in/ns/ext/presets#value");
+ LilvNode* port_pred = lilv_new_uri(plugin->lilv_world(),
+ LV2_CORE__port);
+ LilvNode* symbol_pred = lilv_new_uri(plugin->lilv_world(),
+ LV2_CORE__symbol);
+ LilvNode* value_pred = lilv_new_uri(plugin->lilv_world(),
+ LV2_PRESETS__value);
LilvNode* subject = lilv_new_uri(plugin->lilv_world(), uri.c_str());
LilvNodes* ports = lilv_world_find_nodes(
plugin->lilv_world(),
diff --git a/src/gui/RenameWindow.cpp b/src/gui/RenameWindow.cpp
index cdeb33ac..ffda6dd4 100644
--- a/src/gui/RenameWindow.cpp
+++ b/src/gui/RenameWindow.cpp
@@ -62,7 +62,7 @@ RenameWindow::set_object(SharedPtr<const ObjectModel> object)
{
_object = object;
_symbol_entry->set_text(object->path().symbol());
- const Atom& name_atom = object->get_property("http://lv2plug.in/ns/lv2core#name");
+ const Atom& name_atom = object->get_property(LV2_CORE__name);
_label_entry->set_text(
(name_atom.type() == _app->forge().String) ? name_atom.get_string() : "");
}