Small code cleanup

This commit is contained in:
daa 2017-05-21 16:52:49 +03:00
parent e9ef55cc96
commit 6b1840549d

View File

@ -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) {