From 6b1840549de79a05cf9aeda9a1a89e2cca3a5bf0 Mon Sep 17 00:00:00 2001 From: daa Date: Sun, 21 May 2017 16:52:49 +0300 Subject: [PATCH] Small code cleanup --- src/popup_menu.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/popup_menu.rs b/src/popup_menu.rs index be0c82c..1b29acb 100644 --- a/src/popup_menu.rs +++ b/src/popup_menu.rs @@ -68,18 +68,11 @@ impl PopupMenu { } pub fn show(&self) { - let popover = self.popover.clone(); - gtk::idle_add(move || { - popover.popup(); - Continue(false) - }); + self.popover.popup(); } pub fn hide(self) { - gtk::idle_add(move || { - self.popover.destroy(); - Continue(false) - }); + self.popover.destroy(); } pub fn select(&self, selected: i64) {