From 1c4316b5fc02058b815981eb5cd027aa76bdc263 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 22 Sep 2016 13:04:14 +0200 Subject: [PATCH] Added debuggig statements --- src/dorkbox/systemTray/linux/jna/Gtk.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dorkbox/systemTray/linux/jna/Gtk.java b/src/dorkbox/systemTray/linux/jna/Gtk.java index d6eafd1..44fbc7e 100644 --- a/src/dorkbox/systemTray/linux/jna/Gtk.java +++ b/src/dorkbox/systemTray/linux/jna/Gtk.java @@ -170,6 +170,10 @@ class Gtk { // If JavaFX/SWT is used, this is UNNECESSARY if (!alreadyRunningGTK) { + if (SystemTray.DEBUG) { + logger.error("Running GTK Native Event Loop"); + } + // only necessary if we are the only GTK instance running... final CountDownLatch blockUntilStarted = new CountDownLatch(1); @@ -201,7 +205,7 @@ class Gtk { gtkUpdateThread.setName("GTK Native Event Loop"); gtkUpdateThread.start(); - try { + try { // we CANNOT continue until the GTK thread has started! blockUntilStarted.await(); } catch (InterruptedException e) {