From 8c0bfee100bbd720a5f30d9fcd80b36e4104df0b Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 22 Sep 2016 13:08:07 +0200 Subject: [PATCH] Updated comments for gnome and possible errors --- src/dorkbox/systemTray/linux/GtkSystemTray.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/dorkbox/systemTray/linux/GtkSystemTray.java b/src/dorkbox/systemTray/linux/GtkSystemTray.java index e2910ef..a7d8818 100644 --- a/src/dorkbox/systemTray/linux/GtkSystemTray.java +++ b/src/dorkbox/systemTray/linux/GtkSystemTray.java @@ -54,7 +54,13 @@ class GtkSystemTray extends GtkTypeSystemTray { public void run() { final Pointer trayIcon_ = Gtk.gtk_status_icon_new(); - Gtk.gtk_status_icon_set_title(trayIcon_, "SystemTray"); // necessary for gnome placement + + // necessary for gnome icon detection/placement because we move tray icons around by name. The name is hardcoded + // in extension.js, so don't change it + Gtk.gtk_status_icon_set_title(trayIcon_, "SystemTray"); + + // can cause on fedora 23 + // // Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed Gtk.gtk_status_icon_set_name(trayIcon_, "SystemTray"); trayIcon = trayIcon_;