From ce12c0c208d33ed9337653f3b300448f779f6666 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 23 Dec 2016 21:42:50 +0100 Subject: [PATCH] Fixed comment typos --- src/dorkbox/systemTray/jna/linux/AppIndicator.java | 5 +++-- src/dorkbox/systemTray/jna/linux/Gtk.java | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/dorkbox/systemTray/jna/linux/AppIndicator.java b/src/dorkbox/systemTray/jna/linux/AppIndicator.java index 057bc0d..2245355 100644 --- a/src/dorkbox/systemTray/jna/linux/AppIndicator.java +++ b/src/dorkbox/systemTray/jna/linux/AppIndicator.java @@ -33,17 +33,18 @@ import dorkbox.systemTray.jna.JnaHelper; public class AppIndicator { public static boolean isVersion3 = false; - private static boolean isLoaded = false; /** * Loader for AppIndicator, because it is absolutely mindboggling how those whom maintain the standard, can't agree to what that - * standard library naming convention or features/API set is. We just try until we find one that work, and are able to map the + * standard library naming convention or features/API set is. We just try until we find one that works, and are able to map the * symbols we need. There are bash commands that will tell us the linked library name, however - I'd rather not run bash commands * to determine this. * * This is so hacky it makes me sick. */ static { + boolean isLoaded = false; + // objdump -T /usr/lib/x86_64-linux-gnu/libappindicator.so.1 | grep foo // objdump -T /usr/lib/x86_64-linux-gnu/libappindicator3.so.1 | grep foo diff --git a/src/dorkbox/systemTray/jna/linux/Gtk.java b/src/dorkbox/systemTray/jna/linux/Gtk.java index 4586d10..d57149e 100644 --- a/src/dorkbox/systemTray/jna/linux/Gtk.java +++ b/src/dorkbox/systemTray/jna/linux/Gtk.java @@ -96,7 +96,7 @@ class Gtk { isGtk2 = true; // when running inside of JavaFX, this will be '1'. All other times this should be '0' - // when it's '1', it means that someone else has stared GTK -- so we DO NOT NEED TO. + // when it's '1', it means that someone else has started GTK -- so we DO NOT NEED TO. alreadyRunningGTK = gtk_main_level() != 0; isLoaded = true; @@ -118,7 +118,7 @@ class Gtk { JnaHelper.register(gtk3LibName, Gtk.class); gtk_status_icon_position_menu = Function.getFunction(gtk3LibName, "gtk_status_icon_position_menu"); // when running inside of JavaFX, this will be '1'. All other times this should be '0' - // when it's '1', it means that someone else has stared GTK -- so we DO NOT NEED TO. + // when it's '1', it means that someone else has started GTK -- so we DO NOT NEED TO. alreadyRunningGTK = gtk_main_level() != 0; isLoaded = true; @@ -140,7 +140,7 @@ class Gtk { isGtk2 = true; // when running inside of JavaFX, this will be '1'. All other times this should be '0' - // when it's '1', it means that someone else has stared GTK -- so we DO NOT NEED TO. + // when it's '1', it means that someone else has started GTK -- so we DO NOT NEED TO. alreadyRunningGTK = gtk_main_level() != 0; isLoaded = true;