Small code cleanup
This commit is contained in:
parent
e9ef55cc96
commit
6b1840549d
@ -68,18 +68,11 @@ impl PopupMenu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn show(&self) {
|
pub fn show(&self) {
|
||||||
let popover = self.popover.clone();
|
self.popover.popup();
|
||||||
gtk::idle_add(move || {
|
|
||||||
popover.popup();
|
|
||||||
Continue(false)
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn hide(self) {
|
pub fn hide(self) {
|
||||||
gtk::idle_add(move || {
|
self.popover.destroy();
|
||||||
self.popover.destroy();
|
|
||||||
Continue(false)
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn select(&self, selected: i64) {
|
pub fn select(&self, selected: i64) {
|
||||||
|
Loading…
Reference in New Issue
Block a user