From a749f818dbc2f6c974665454833ec825ba36898e Mon Sep 17 00:00:00 2001 From: David McKinney Date: Mon, 25 Jan 2021 13:13:11 -0500 Subject: [PATCH] Cleaned up some warnings --- citadel-realms-ui/src/ui.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/citadel-realms-ui/src/ui.rs b/citadel-realms-ui/src/ui.rs index 3ab6752..cb02a03 100644 --- a/citadel-realms-ui/src/ui.rs +++ b/citadel-realms-ui/src/ui.rs @@ -3,7 +3,6 @@ use gtk::prelude::*; use gtk::StyleContext; use gdk::ModifierType; use gdk::keys::constants; -use gdk::keys::Key; use crate::matcher::Matcher; use crate::results::ResultList; @@ -107,7 +106,7 @@ impl Ui { if self.result_list.activate_selected(&self.window) { println!("activated"); self.input.set_text(""); - gtk::idle_add({ + glib::idle_add_local({ let (w,h) = self.window_size; let window = self.window.clone(); move || {