Petar Popovic
68dabd48c4
SDL_GetTrayEntries(): Rename parameter size to count
2025-02-05 07:44:46 -08:00
Sam Lantinga
5f2dd5f04e
tray: fixed multi-threading issues with GTk implementation
...
GTK+ documentation states that all GDK and GTK+ calls should be made from the main thread.
Fixes https://github.com/libsdl-org/SDL/issues/11984
2025-01-19 18:53:55 -08:00
Sam Lantinga
dfdc120268
tray: document thread-safety
2025-01-19 18:53:55 -08:00
Sam Lantinga
7570ab106d
tray: improved error checking
...
Also clean up any existing trays when the program quits
Fixes https://github.com/libsdl-org/SDL/issues/11893
2025-01-19 18:53:55 -08:00
Sam Lantinga
042898995c
Added SDL_ClickTrayEntry()
...
Also removed the app delegate from the tray code on Cocoa and folded that into SDL3AppDelegate.
Fixes https://github.com/libsdl-org/SDL/issues/11906
2025-01-10 12:55:50 -08:00
Sam Lantinga
8d8649b33f
Fixed error: returning 'SDL_TrayEntry **' from a function with incompatible return type 'const SDL_TrayEntry **'
2025-01-06 11:35:54 -08:00
Sam Lantinga
8a9b7ae8d1
Switched nEntries to int, to avoid signed/unsigned comparison warnings
...
Also standardized memory allocation calls to match SDL style
2025-01-06 11:29:28 -08:00
Semphris
7673b84f52
Make SDL_GetTrayEntires() NULL-terminated
2025-01-04 10:56:19 -08:00
Sam Lantinga
f2074d7af3
Updated copyright for 2025
2025-01-01 07:45:52 -08:00
Semphris
0461180e25
SDL_EVENT_QUIT when no window nor tray
...
SDL_HINT_QUIT_ON_LAST_WINDOW_CLOSE will not fire if there are active tray icons. This impacts only applications that create tray icons, and that at least one icon outlives the last visible top-level window. SDL_EVENT_QUIT will fire when the last active tray is destroyed if there are no active windows.
2024-12-27 09:22:27 -08:00
Sam Lantinga
76920a230f
Fixed Xcode build
2024-12-24 10:49:58 -08:00
Semphriss
01b9b0edb7
Add system tray support ( #10873 )
2024-12-24 10:36:39 -08:00