Cleaned up some warnings

This commit is contained in:
David McKinney 2021-01-25 13:13:11 -05:00 committed by Bruce Leidl
parent a77a7cc07b
commit a749f818db

View File

@ -3,7 +3,6 @@ use gtk::prelude::*;
use gtk::StyleContext; use gtk::StyleContext;
use gdk::ModifierType; use gdk::ModifierType;
use gdk::keys::constants; use gdk::keys::constants;
use gdk::keys::Key;
use crate::matcher::Matcher; use crate::matcher::Matcher;
use crate::results::ResultList; use crate::results::ResultList;
@ -107,7 +106,7 @@ impl Ui {
if self.result_list.activate_selected(&self.window) { if self.result_list.activate_selected(&self.window) {
println!("activated"); println!("activated");
self.input.set_text(""); self.input.set_text("");
gtk::idle_add({ glib::idle_add_local({
let (w,h) = self.window_size; let (w,h) = self.window_size;
let window = self.window.clone(); let window = self.window.clone();
move || { move || {