diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/instance.c | 1 | ||||
-rw-r--r-- | src/suil_internal.h | 2 | ||||
-rw-r--r-- | src/x11_in_gtk2.c | 2 | ||||
-rw-r--r-- | src/x11_in_qt4.cpp | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/src/instance.c b/src/instance.c index eca72db..2bce3f6 100644 --- a/src/instance.c +++ b/src/instance.c @@ -23,7 +23,6 @@ #include "suil-config.h" #include "suil_internal.h" -#define NS_UI "http://lv2plug.in/ns/extensions/ui#" #define GTK2_UI_URI NS_UI "GtkUI" #define QT4_UI_URI NS_UI "Qt4UI" #define X11_UI_URI NS_UI "X11UI" diff --git a/src/suil_internal.h b/src/suil_internal.h index bcf0777..a2444c9 100644 --- a/src/suil_internal.h +++ b/src/suil_internal.h @@ -34,6 +34,8 @@ static inline char* dlerror(void) { return "Unknown error"; } #include "suil/suil.h" +#define NS_UI "http://lv2plug.in/ns/extensions/ui#" + #define SUIL_ERRORF(fmt, ...) fprintf(stderr, "error: %s: " fmt, \ __func__, __VA_ARGS__) diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c index 12508e6..22f39fc 100644 --- a/src/x11_in_gtk2.c +++ b/src/x11_in_gtk2.c @@ -130,7 +130,7 @@ suil_wrapper_new(SuilHost* host, memcpy(wrapper->features, features, sizeof(LV2_Feature) * n_features); LV2_Feature* parent_feature = (LV2_Feature*)malloc(sizeof(LV2_Feature)); - parent_feature->URI = "http://example.org/winid"; + parent_feature->URI = NS_UI "parent"; parent_feature->data = (void*)(intptr_t)gtk_plug_get_id(wrap->plug); wrapper->features[n_features] = parent_feature; diff --git a/src/x11_in_qt4.cpp b/src/x11_in_qt4.cpp index 7c75a95..cfecc04 100644 --- a/src/x11_in_qt4.cpp +++ b/src/x11_in_qt4.cpp @@ -61,7 +61,7 @@ suil_wrapper_new(SuilHost* host, memcpy(wrapper->features, features, sizeof(LV2_Feature) * n_features); LV2_Feature* parent_feature = (LV2_Feature*)malloc(sizeof(LV2_Feature)); - parent_feature->URI = "http://example.org/winid"; + parent_feature->URI = NS_UI "parent"; parent_feature->data = (void*)(intptr_t)ew->winId(); wrapper->features[n_features] = parent_feature; |