Commit Graph

89 Commits

Author SHA1 Message Date
951dfb930d Füge UTF-8-Unterstützung für Windows Tray hinzu
Konvertiert Menütexte und Tooltips von UTF-8 zu UTF-16, um die korrekte Anzeige von Nicht-ASCII-Zeichen (z.B. Umlaute) im System-Tray sicherzustellen.
2026-05-08 10:36:06 +02:00
a71be4e1e3 Merge pull request 'Sync README with current public API' (#2) from gary/c_tray:docs/readme-api-sync into master
Reviewed-on: #2
2026-05-06 11:43:11 +02:00
e9f0c9b8c9 Sync README with current public API 2026-05-06 11:43:00 +02:00
9a8694d755 Merge pull request 'Add support for left-click actions' (#1) from gary/c_tray:local into master
Reviewed-on: #1
2026-05-06 11:30:33 +02:00
fa1e862259 Fügt Unterstützung für Linksklick-Aktionen hinzu
Ermöglicht die Ausführung einer Callback-Funktion beim Linksklick auf das Tray-Icon. Dies bietet erweiterte Interaktionsmöglichkeiten mit der Anwendung über das Tray-Icon. Zusätzlich wird das Problem behoben, dass das Icon nicht freigegeben wird und somit nicht korrekt zerstört wird.
2026-02-02 21:15:52 +01:00
Dmitry Mikushin
7387d66ca4 Recommend Ninja as a CMake build system 2022-02-19 22:18:06 +01:00
Dmitry Mikushin
ed23945d13 Adding screenshot for Linux 2022-02-19 22:14:39 +01:00
Dmitry Mikushin
b0e7d836c5 Adding prerequisite for Linux 2022-02-19 22:09:12 +01:00
Dmitry Mikushin
98c8cd3bb8 Not single-header anymore 2022-02-19 18:29:00 +01:00
Dmitry Mikushin
13a7e0075a Adding Windows screenshot 2022-02-19 18:26:44 +01:00
Dmitry Mikushin
096bac7c9c Fixing few more issues on Windows 2022-02-19 18:01:51 +01:00
Dmitry Mikushin
801d928305 Correcting warnings in the public API, correcting errors on Windows 2022-02-19 17:53:45 +01:00
Dmitry Mikushin
7aaa634c93 Rewriting CMake script in a modern way 2022-02-19 17:49:22 +01:00
Dmitry Mikushin
6da6d9d0ff Adding install target for the tray library 2022-02-19 15:51:47 +01:00
Dmitry Mikushin
9c2c37d31d Requiring C99 standard in a modern CMake way 2022-02-19 15:48:38 +01:00
Dmitry Mikushin
7dd6cb99fa Correcting the issues on Linux target 2022-02-19 15:33:13 +01:00
Dmitry Mikushin
c3c7cb273f Updating README, adding screenshot 2021-11-09 18:30:52 +01:00
Dmitry Mikushin
330d413445 Correcting CMake rules to handle distinct Linux/Windows/Darwin implementations 2021-11-09 18:08:40 +01:00
LonghronShen
fab1f4990a fix build for linux 2021-11-09 18:07:33 +01:00
LonghronShen
95a1d0a786 fix build for osx 2021-11-09 18:07:33 +01:00
LonghronShen
149cabaee7 fix resource copy for examples 2021-11-09 18:07:33 +01:00
LonghronShen
7e4d006443 add osx support 2021-11-09 18:07:33 +01:00
LonghronShen
7f190194da add cmake support 2021-11-09 18:07:33 +01:00
Niklas Voss
e09fdcf96e Ported darwin C-code to Objective-C, separating all three implementations into individual files 2021-11-09 18:07:33 +01:00
intika
4e35f0b7d0 update checkbox implementation 2021-11-09 12:57:56 +01:00
Oscar Morante
2348a1a5c8 fix all menu items have a check box (gtk) 2021-11-09 12:54:17 +01:00
Andreas Opferkuch
2d4e78c1f2 Set tooltip in tray_update instead of tray_init 2021-11-09 12:47:46 +01:00
Andreas Opferkuch
4fd58d2a5c Make the tooltip optional by checking for NULL and empty string 2021-11-09 12:47:46 +01:00
Andreas Opferkuch
5cc49f2f32 Add support for a tooltip (Windows only currently) 2021-11-09 12:47:46 +01:00
Rodrigo Madera
95b83171b7 Explain that we are now C++ compatible. 2021-11-09 12:24:49 +01:00
Rodrigo Madera
b0fd327043 Explain we now require one of the three defines before including. 2021-11-09 12:24:49 +01:00
Rodrigo Madera
2bbb122d90 Separate tray_menu[] from tray in README.md example. 2021-11-09 12:24:49 +01:00
Rodrigo Madera
185ec37d3e Make tray_menu::text a const char* for correctness. 2021-11-09 12:24:49 +01:00
Rodrigo Madera
1180ae4db3 Make tray::icon a const char* for correctness. 2021-11-09 12:24:49 +01:00
Rodrigo Madera
06c28f035f Produce a compile-time error if none of the three implementations were requested. 2021-11-09 12:24:49 +01:00
Rodrigo Madera
758c780259 Simplify defines for platform selection. 2021-11-09 12:24:49 +01:00
Nicolas Burrus
08ac69e02a Only process messages coming from the tray window. This avoids potential bugs where the tray loop would steal messages from other windows. 2021-11-09 11:59:07 +01:00
Serge Zaitsev
8dd1358b92 Merge pull request #6 from s-h-a-d-o-w/patch-1
[win] close menu if user clicks outside
2018-07-31 14:47:47 +02:00
Andreas Opferkuch
2ae960fcfc [win] close menu if user clicks outside
See also here ("Important: If you implement a context menu, it's vital that you set your window to the foreground before calling TrackPopupMenu to ensure the menu closes properly."):
https://www.codeproject.com/Articles/4768/Basic-use-of-Shell-NotifyIcon-in-Win32
2018-07-29 14:41:25 +02:00
Serge Zaitsev
89568e800c Merge pull request #4 from jslegendre/master
macOS version re-written with objc-runtime
2018-07-23 15:09:59 +02:00
Jeremy Legendre
1b6e312ba5 Update README.md 2018-07-23 09:04:14 -04:00
Jeremy Legendre
e0381a1b2c Updated Makefile
Removed  '-x objective-c' as it is no longer needed
2018-07-22 23:06:06 -04:00
Jeremy Legendre
32f3bdb834 macOS version in obj-c runtime 2018-07-22 22:58:15 -04:00
Serge Zaitsev
3b6520f690 Clean up broken markdown in README.md 2017-08-22 21:01:11 +03:00
Serge Zaitsev
3802357ad8 Merge pull request #2 from lawsonry/master
Add platform-specific examples and update readme
2017-08-22 20:59:58 +03:00
Jesse Lawson
b4a8218c48 Remove platform examples. 2017-08-22 10:55:05 -07:00
Jesse Lawson
8e2ebd7a2a Remove platform-specific examples (Ref PR#2); add single platform check block in example.c 2017-08-22 10:54:48 -07:00
Jesse Lawson
61943aa468 Delete example.c 2017-08-22 10:33:06 -07:00
Jesse Lawson
b7fec21c1f Delete main.c 2017-08-22 10:32:55 -07:00
Jesse Lawson
64cb5fc36e Add icon; Add platform-specific examples; Update readme with pre-requisites. 2017-08-22 10:29:30 -07:00