Skip to content

Commit

Permalink
Merge pull request #39 from AmionSky/appindicator-separator
Browse files Browse the repository at this point in the history
Add menu item separator for libappindicator
  • Loading branch information
olback authored Oct 18, 2023
2 parents 1fc905c + cee63ca commit 04ee1d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/api/linux_libappindicator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,13 @@ impl TrayItemLinux {

Ok(())
}

pub fn add_separator(&mut self) -> Result<(), TIError> {
let item = gtk::SeparatorMenuItem::new();
self.menu.append(&item);
self.menu.show_all();
self.tray.set_menu(&mut self.menu);

Ok(())
}
}

0 comments on commit 04ee1d0

Please sign in to comment.