mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-19 19:34:24 +02:00
Merge pull request #514 from JakeStanger/fix/tray-right-click
fix(tray): cannot activate menu options with right click
This commit is contained in:
commit
4aab6d5061
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
use super::diff::{Diff, MenuItemDiff};
|
||||
use crate::{spawn, try_send};
|
||||
use glib::Propagation;
|
||||
use gtk::prelude::*;
|
||||
use gtk::{CheckMenuItem, Image, Label, Menu, MenuItem, SeparatorMenuItem};
|
||||
use std::collections::HashMap;
|
||||
|
@ -251,8 +252,9 @@ impl TrayMenuItem {
|
|||
let tx = tx.clone();
|
||||
let id = info.id;
|
||||
|
||||
widget.connect_activate(move |_item| {
|
||||
widget.connect_button_press_event(move |_item, _button| {
|
||||
try_send!(tx, id);
|
||||
Propagation::Proceed
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue