-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNI implementation for tray icons #12
Conversation
2cf717e
to
7f22f01
Compare
All major features regarding the dbus protocol are now implemented. |
fee5919
to
39b45ec
Compare
Implements a rough outline of the SNI (StatusNotifierItem) d-bus protocol for tray icons. Note: This is currently *very* WIP Full implementation will close #5
Qt waits until the callback to RegisterItem is done. Thus, we can't query the item and need to defer it
Since it uses a 13 year old library, it is broken. The popup size is hard-fixed at 200x200, with looks really ugly with non-transparent background.
This is the fix for #79, but blown out of proportions, because various things kept breaking - Original fix: Add/Remove items instead of cleaning everything everytime something changes. If the dbus-menu was open, it was referencing the old widget causing issues. The new method keeps the original GtkDrawingArea and only replace the buffer/tooltip - Create dbus-menu on widget creation instead of on click. This was actually the fix for #12 (comment). The css has also been updated, making the popup finally look good. - With the new item refreshing theme KeePassXC kept deadlocking when the properties changed. To fix it, the dbus properties are now queried asynchronously via 'GetAll'
Implementation for SNI (StatusNotifierItem) d-bus protocol for tray icons.
Note: This is currently very WIP
Things that need to be done until it is ready for merging into master:
Full implementation will close #5