aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jalv.c2
-rw-r--r--src/jalv_gtk.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 5cbd0f9..2609290 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -596,7 +596,7 @@ jalv_ui_instantiate(Jalv* jalv, const char* native_ui_type, void* parent)
jalv->ui_instance = suil_instance_new(
jalv->ui_host,
- &jalv,
+ jalv,
native_ui_type,
lilv_node_as_uri(lilv_plugin_get_uri(jalv->plugin)),
lilv_node_as_uri(lilv_ui_get_uri(jalv->ui)),
diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c
index 32d361c..76e1bb3 100644
--- a/src/jalv_gtk.c
+++ b/src/jalv_gtk.c
@@ -546,6 +546,7 @@ jalv_open_ui(Jalv* jalv)
{
GtkWidget* window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
jalv->window = window;
+ jalv->has_ui = TRUE;
g_signal_connect(window, "destroy",
G_CALLBACK(on_window_destroy), jalv);
@@ -635,7 +636,6 @@ jalv_open_ui(Jalv* jalv)
g_timeout_add(1000 / jalv->ui_update_hz,
(GSourceFunc)jalv_emit_ui_events, jalv);
- jalv->has_ui = TRUE;
gtk_window_present(GTK_WINDOW(window));
gtk_main();