From 53647c8d4dd71cac7e85d02272ae051a1b2c0295 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 23 Dec 2016 12:32:54 +0100 Subject: [PATCH] Added more comments for eOS. --- src/dorkbox/systemTray/SystemTray.java | 2 ++ src/dorkbox/systemTray/nativeUI/GtkMenuItemCheckbox.java | 1 + 2 files changed, 3 insertions(+) diff --git a/src/dorkbox/systemTray/SystemTray.java b/src/dorkbox/systemTray/SystemTray.java index 1d64191..8bba168 100644 --- a/src/dorkbox/systemTray/SystemTray.java +++ b/src/dorkbox/systemTray/SystemTray.java @@ -503,6 +503,8 @@ class SystemTray { useNativeMenus = true; } + // ElementaryOS shows the checkbox on the right, everyone else is on the left. + // With eOS, we CANNOT show the spacer image. It does not work trayType = selectTypeQuietly(useNativeMenus, TrayType.AppIndicator); } else if ("gnome".equalsIgnoreCase(XDG)) { diff --git a/src/dorkbox/systemTray/nativeUI/GtkMenuItemCheckbox.java b/src/dorkbox/systemTray/nativeUI/GtkMenuItemCheckbox.java index 1ed200b..634feb5 100644 --- a/src/dorkbox/systemTray/nativeUI/GtkMenuItemCheckbox.java +++ b/src/dorkbox/systemTray/nativeUI/GtkMenuItemCheckbox.java @@ -28,6 +28,7 @@ import dorkbox.systemTray.jna.linux.Gobject; import dorkbox.systemTray.jna.linux.Gtk; import dorkbox.systemTray.peer.CheckboxPeer; +// ElementaryOS shows the checkbox on the right, everyone else is on the left. With eOS, we CANNOT show the spacer image. It does not work class GtkMenuItemCheckbox extends GtkBaseMenuItem implements CheckboxPeer, GCallback { @SuppressWarnings({"FieldCanBeLocal", "unused"}) private final NativeLong nativeLong;