forked from dorkbox/SystemTray
Added debuggig statements
This commit is contained in:
parent
83cea322f1
commit
1c4316b5fc
@ -170,6 +170,10 @@ class Gtk {
|
|||||||
|
|
||||||
// If JavaFX/SWT is used, this is UNNECESSARY
|
// If JavaFX/SWT is used, this is UNNECESSARY
|
||||||
if (!alreadyRunningGTK) {
|
if (!alreadyRunningGTK) {
|
||||||
|
if (SystemTray.DEBUG) {
|
||||||
|
logger.error("Running GTK Native Event Loop");
|
||||||
|
}
|
||||||
|
|
||||||
// only necessary if we are the only GTK instance running...
|
// only necessary if we are the only GTK instance running...
|
||||||
final CountDownLatch blockUntilStarted = new CountDownLatch(1);
|
final CountDownLatch blockUntilStarted = new CountDownLatch(1);
|
||||||
|
|
||||||
@ -201,7 +205,7 @@ class Gtk {
|
|||||||
gtkUpdateThread.setName("GTK Native Event Loop");
|
gtkUpdateThread.setName("GTK Native Event Loop");
|
||||||
gtkUpdateThread.start();
|
gtkUpdateThread.start();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// we CANNOT continue until the GTK thread has started!
|
// we CANNOT continue until the GTK thread has started!
|
||||||
blockUntilStarted.await();
|
blockUntilStarted.await();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user