feat(status-area): provide activation token on menu item activation
This commit is contained in:
parent
1d3d869f4a
commit
a5d813dc9b
3 changed files with 72 additions and 5 deletions
|
|
@ -113,6 +113,10 @@ impl StatusNotifierItem {
|
|||
pub fn menu_proxy(&self) -> &DBusMenuProxy<'static> {
|
||||
&self.menu_proxy
|
||||
}
|
||||
|
||||
pub fn item_proxy(&self) -> &StatusNotifierItemProxy<'static> {
|
||||
&self.item_proxy
|
||||
}
|
||||
}
|
||||
|
||||
async fn get_layout(menu_proxy: DBusMenuProxy<'static>) -> Result<Layout, String> {
|
||||
|
|
@ -136,6 +140,8 @@ pub trait StatusNotifierItem {
|
|||
|
||||
#[zbus(signal)]
|
||||
fn new_icon(&self) -> zbus::Result<()>;
|
||||
|
||||
fn provide_xdg_activation_token(&self, token: String) -> zbus::Result<()>;
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue