summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-23 00:18:45 +0000
committerDavid Robillard <d@drobilla.net>2012-04-23 00:18:45 +0000
commit034c8948e8fe47b487e17a8dd438f3a9857d571a (patch)
tree3ea10e8f91f411976b3a31119a660d06508e2c5d /src/gui
parent170b763db7c14be1014268198d6e02769352c5db (diff)
downloadingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.tar.gz
ingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.tar.bz2
ingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.zip
Use URI defines where possible.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4244 a436a847-0d15-0410-975c-d299462d15a1
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() : "");
}