Skip to content

Commit

Permalink
Add menu item separator for libappindicator
Browse files Browse the repository at this point in the history
  • Loading branch information
AmionSky committed Jun 4, 2023
1 parent 92d0310 commit cee63ca
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 cee63ca

Please sign in to comment.