summaryrefslogtreecommitdiff
path: root/lv2/lv2_gui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lv2/lv2_gui.cc')
-rw-r--r--lv2/lv2_gui.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/lv2/lv2_gui.cc b/lv2/lv2_gui.cc
index 7b56c5b..625c7f7 100644
--- a/lv2/lv2_gui.cc
+++ b/lv2/lv2_gui.cc
@@ -120,24 +120,31 @@ struct DG_GUI {
static void ui_run(struct lv2_external_ui * _this_)
{
+ //printf("ui_run begin\n"); fflush(stdout);
struct DG_GUI *dggui = (struct DG_GUI *)_this_;
dggui->gui->processEvents();
+ //printf("ui_run end\n"); fflush(stdout);
}
static void ui_show(struct lv2_external_ui * _this_)
{
+ //printf("ui_show begin\n"); fflush(stdout);
struct DG_GUI *dggui = (struct DG_GUI *)_this_;
dggui->gui->show();
+ //printf("ui_show end\n"); fflush(stdout);
}
static void ui_hide(struct lv2_external_ui * _this_)
{
+ //printf("ui_hide begin\n"); fflush(stdout);
struct DG_GUI *dggui = (struct DG_GUI *)_this_;
if(dggui->gui) dggui->gui->hide();
+ //printf("ui_hide end\n"); fflush(stdout);
}
static void closeHandler(void *ptr)
{
+ //printf("closeHandler begin\n"); fflush(stdout);
struct DG_GUI *gui = (struct DG_GUI *)ptr;
if(gui->ui_host_ptr && gui->ui_host_ptr->ui_closed) {
@@ -146,6 +153,7 @@ static void closeHandler(void *ptr)
delete gui->gui;
gui->gui = NULL;
+ //printf("closeHandler end\n"); fflush(stdout);
}
static LV2UI_Handle ui_instantiate(const struct _LV2UI_Descriptor * descriptor,
@@ -156,7 +164,7 @@ static LV2UI_Handle ui_instantiate(const struct _LV2UI_Descriptor * descriptor,
LV2UI_Widget * widget,
const LV2_Feature * const * features)
{
- printf("ui_instantiate\n");
+ //printf("ui_instantiate begin\n"); fflush(stdout);
struct DG_GUI* pt = new struct DG_GUI;
@@ -167,7 +175,7 @@ static LV2UI_Handle ui_instantiate(const struct _LV2UI_Descriptor * descriptor,
std::string uri = (*features)->URI;
void *data = (*features)->data;
- printf("DGUI: feature: %s\n", uri.c_str());
+ //printf("DGUI: feature: %s\n", uri.c_str());
if(uri == LV2_INSTANCE_ACCESS_URI) {
pt->instance_handle = data;
@@ -195,6 +203,8 @@ static LV2UI_Handle ui_instantiate(const struct _LV2UI_Descriptor * descriptor,
*widget = (LV2UI_Widget)pt;
+ //printf("ui_instantiate end\n"); fflush(stdout);
+
return pt;
}