[GH-ISSUE #6] tool_tip not present in StatusNotifierItem #1

Closed
opened 2026-05-22 22:04:45 +01:00 by JakeStanger · 1 comment
Owner

Originally created by @frahz on GitHub (Jan 5, 2025).
Original GitHub issue: https://github.com/JakeStanger/system-tray/issues/6

The tooltip item is not present (commented out) in the StatusNotifierItem struct when initially converting from the DBusProps in Event::Add.

I also see when Event::Update is called that the tooltip is present and subsequently updated in here:
github.com/JakeStanger/system-tray@01e7c36c02/src/client.rs (L425-L430)

Which then gets updated and set in ironbar:
github.com/JakeStanger/ironbar@998e5cecc0/src/modules/tray/mod.rs (L198-L200)

Here is where its commented out:
github.com/JakeStanger/system-tray@01e7c36c02/src/item.rs (L80-L82)

github.com/JakeStanger/system-tray@01e7c36c02/src/item.rs (L256)

So just wanted to check if it's possible to have the tooltip present when creating the StatusNotifierItem struct before sending it through an Event::Add event.

Originally created by @frahz on GitHub (Jan 5, 2025). Original GitHub issue: https://github.com/JakeStanger/system-tray/issues/6 The tooltip item is not present (commented out) in the `StatusNotifierItem` struct when initially converting from the `DBusProps` in `Event::Add`. I also see when `Event::Update` is called that the tooltip is present and subsequently updated in here: https://github.com/JakeStanger/system-tray/blob/01e7c36c02fca5dbc7fb085c414ce6d0be852983/src/client.rs#L425-L430 Which then gets updated and set in ironbar: https://github.com/JakeStanger/ironbar/blob/998e5cecc02a66173e72f0c003a690489cc6ac07/src/modules/tray/mod.rs#L198-L200 Here is where its commented out: https://github.com/JakeStanger/system-tray/blob/01e7c36c02fca5dbc7fb085c414ce6d0be852983/src/item.rs#L80-L82 https://github.com/JakeStanger/system-tray/blob/01e7c36c02fca5dbc7fb085c414ce6d0be852983/src/item.rs#L256 So just wanted to check if it's possible to have the tooltip present when creating the `StatusNotifierItem` struct before sending it through an `Event::Add` event.
Author
Owner

@JakeStanger commented on GitHub (Jan 5, 2025):

Good spot, thanks for this. The tooltip code was left commented out and then implemented after initial release, so I must have missed that part of it when doing so.

I'll stick a release out shortly which fixes this.

<!-- gh-comment-id:2571785348 --> @JakeStanger commented on GitHub (Jan 5, 2025): Good spot, thanks for this. The tooltip code was left commented out and then implemented after initial release, so I must have missed that part of it when doing so. I'll stick a release out shortly which fixes this.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/system-tray#1
No description provided.