Commit Graph

26 Commits

Author SHA1 Message Date
nathan
b936a4cd76 Migrated GtkStatusIcon to use swing menus instead of GTK menus. The
swing menus are the "golden standard", becuase we can controll 100%
of it.
2016-10-09 16:28:32 +02:00
nathan
0e56ca199a Organized swing menu logic 2016-10-09 15:56:58 +02:00
nathan
1a35cb8726 API CHANGE (setIcon -> setImage) for API consistency with how
menus/entries get their image set. Class heirarchy is now consistent
with all menu types (system tray + sub-menus)
2016-10-08 23:54:45 +02:00
nathan
381e629e72 Code polish 2016-10-08 21:50:37 +02:00
nathan
f0fe9fa9a2 Fixed issue with keyboard navigation/mnemonics on popup window. 2016-10-08 17:41:21 +02:00
nathan
42d053398f Fixed issues with windows/mac 2016-10-04 16:59:22 +02:00
nathan
b8cd5c875f Code polish 2016-10-04 00:21:40 +02:00
nathan
7e2834c0cb Added setEnabled() for menu+entries, misc bug fixes for windows 2016-10-03 23:12:00 +02:00
nathan
b41c62c898 WIP menu cleanup 2016-10-03 20:14:09 +02:00
nathan
14ff3fae06 Fixed issues with submenu's and our popup auto-hide tracker 2016-09-29 13:07:58 +02:00
nathan
b354daab68 WIP swing submenus 2016-09-29 03:00:29 +02:00
nathan
bf3cb8de11 Refactored out Menu object (from the SystemTray object). Converted
SystemTray into a crossPlatform proxy. WIP submenus
2016-09-29 01:44:11 +02:00
nathan
280da3b0b0 Code polish 2016-09-28 17:20:13 +02:00
nathan
ddcec4cb68 Refactored out the "menu", on preparation for submenus 2016-09-28 15:33:22 +02:00
nathan
c9b0cce1e3 Refactored status entries, added spacers to menu 2016-09-28 02:51:06 +02:00
nathan
19eb4df547 Added comments 2016-09-26 21:45:37 +02:00
nathan
6a9b606e51 Fixed image scaling query for Ubuntu 16.06, changed all debug logs to
'debug'. Added a separate menu entry size (independent of tray size)
2016-09-26 20:56:42 +02:00
nathan
ad066c6e42 Image scaling + caching + error-icon if problems, fix for windows
'auto'
scaling
2016-09-26 02:06:27 +02:00
nathan
5b469b65ed Added comments for bugs on linux 2016-09-22 15:33:02 +02:00
nathan
6fdbe8ac83 Abstracted 'dispatch(Runnable)' so that all updates to the SystemTray
occur on the dispatch thread. This will resolve any race condition
 issues when creating, then (before it's actually created) trying to
 modify a menu entry.
2016-04-05 14:07:41 +02:00
nathan
5c2dc1fdc6 code polish 2016-02-21 00:55:54 +01:00
nathan
a68c79182d Cleaned up memory leaks. Added SystemTray.getStatus(). Cleaned up support for SWT. 2016-02-15 13:27:33 +01:00
nathan
3507869c35 Removed checked expections (now they are unchecked). Added better detection of JavaFX. 2016-02-14 17:51:35 +01:00
nathan
c1b6c1a723 Added GTK3 support (now libappindicator3 works correctly with regards to showing menu icons). Added support for setting icons via URL and InputStream. Moved all GTK operations to a single thread. Moved error logs from System.err -> logger. Made SystemTray a singleton (it will no longer have the java-side get accidentally garbage collected). Update documentation 2016-02-13 15:06:19 +01:00
nathan
8b109f6d1c Converted SystemTray to use a singleton pattern for ease of use. Icon *must* be set to see it (obviously). Updated Readme.md example. 2016-02-12 02:30:33 +01:00
nathan
801baad635 Added SystemTray.getVersion(), added URL and InputStream (to all methods that previous accepted String) for setting images in the menu/tray. Moved package out of util. 2016-02-12 01:51:15 +01:00