Commit graph

11 commits

Author SHA1 Message Date
Ashley Wulber
5b5cd77e7c update iced 2024-10-31 17:52:33 -04:00
Ian Douglas Scott
a5dfc883b8 status-area: Call AboutToShow before showing menu
Comments in `gnome-shell-extension-appindicator` indicate this is
necessary for some clients. Checking the return value doesn't seem to
be.

There are more comments about Dropbox; more may be needed to fix it,
which doesn't seem to behave very properly.
2024-06-24 13:34:15 -06:00
Ian Douglas Scott
1370558546 status-area: Ignore shortcut field to fix parse error
If this has the wrong type, it causes a parse error due to
https://github.com/dbus2/zbus/issues/856.

This fixes the status icon for Slack, and probably other applications.
Not sure how this field is defined in general, but with Slack it is
an `aas`.

`gnome-shell-extension-appindicator` doesn't seem to use the `shortcut`
field either.
2024-06-24 13:34:15 -06:00
Ian Douglas Scott
3641bf8bce status-area: Use zbus::interface instead of deprecated dbus_interface 2024-06-24 13:34:15 -06:00
Ashley Wulber
87250b5e50 zbus update 2024-05-18 01:38:41 +02:00
Michael Aaron Murphy
8527257ddd chore: add SPDX license identifiers 2024-05-06 21:56:50 +02:00
Ian Douglas Scott
d5aa2f3252 status-area: Handle clients that don't provide icon_name/icon_pixmap
It seems some clients expose the properties and leave them empty, but
others just provide either one on its own.

This fixes clients like Mattermost.
2024-03-28 15:31:44 -07:00
Ian Douglas Scott
180e75cb9a
status-area: Show icons that have icon_pixmap but not icon_name (#302)
This is at least one of the issue behind
https://github.com/pop-os/cosmic-applets/issues/165. OBS now shows it's
icon instead of an empty space. But the Mattermost flatpak doesn't show
anything. (Is that Flatpak related, or does it not use
`StatusNotifierItem`?)

Requires https://github.com/pop-os/libcosmic/pull/368. Ideally, it
should have some way to choose from multiple icons in memory of
different sizes.
2024-03-27 13:33:37 -07:00
daniel.eades
fed18d3726 avoid single variant match statements 2023-11-16 15:47:20 -05:00
daniel.eades
41b88532c9 remove needless borrows 2023-11-16 15:47:20 -05:00
Ian Douglas Scott
6a64486163 Iced port of status area applet
This is based on the GTK version of the status area applet that was
previously in this repository.

This exposes app indicators found over dbus. As used in applications
like nm-applet and steam.
2023-08-24 16:57:27 -07:00