tray: linux fix tray menu elements not running callbacks (#13626)

This commit is contained in:
Hayden Gray authored and GitHub committed 2025-08-03 07:22:32 -07:00
1 parent e1a623f129
commit cb5436045d
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -223,5 +223,6 @@ void SDL_UpdateGtk(void)
{
if (IsGtkInit()) {
gtk.g.main_context_iteration(sdl_main_context, GTK_FALSE);
gtk.g.main_context_iteration(NULL, GTK_FALSE);
}
}
+1 -1
View File
@@ -166,7 +166,7 @@ struct SDL_Tray {
GtkMenuShell *menu_cached;
};
static void call_callback(GtkMenuItem *item, GParamSpec *pspec, gpointer ptr)
static void call_callback(GtkMenuItem *item, gpointer ptr)
{
SDL_TrayEntry *entry = ptr;