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.
This commit is contained in:
Ian Douglas Scott 2024-06-22 19:40:25 -07:00 committed by Jeremy Soller
parent 1370558546
commit a5dfc883b8
3 changed files with 11 additions and 0 deletions

View file

@ -235,6 +235,8 @@ trait DBusMenu {
fn event(&self, id: i32, event_id: &str, data: &OwnedValue, timestamp: u32)
-> zbus::Result<()>;
fn about_to_show(&self, id: i32) -> zbus::Result<bool>;
#[zbus(signal)]
fn layout_updated(&self, revision: u32, parent: i32) -> zbus::Result<()>;
}