---
name: "SDL_SetTrayTooltip"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_SetTrayTooltip"
---

# SDL\_SetTrayTooltip(3)

Updates the system tray icon's tooltip.

## NAME

SDL\_SetTrayTooltip - Updates the system tray icon's tooltip.

## HEADER FILE

Defined in SDL3/SDL\_tray.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**void SDL\_SetTrayTooltip(SDL\_Tray \*tray, const char \*tooltip);**

## FUNCTION PARAMETERS

- *tray*

  the tray icon to be updated.

- *tooltip*

  the new tooltip in UTF-8 encoding. May be NULL.

## THREAD SAFETY

This function should be called on the thread that created the tray.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateTray**(3)](/SDL_CreateTray/3.md)
