mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-08 07:21:27 +03:00
impl fingerprint ui logic
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
mod client_object;
|
||||
mod client_row;
|
||||
mod fingerprint_window;
|
||||
mod key_object;
|
||||
mod key_row;
|
||||
mod window;
|
||||
|
||||
use std::{env, process, str};
|
||||
@@ -16,6 +18,7 @@ use gtk::{
|
||||
use gtk::{gio, glib, prelude::ApplicationExt};
|
||||
|
||||
use self::client_object::ClientObject;
|
||||
use self::key_object::KeyObject;
|
||||
|
||||
pub fn run() -> glib::ExitCode {
|
||||
log::debug!("running gtk frontend");
|
||||
@@ -133,6 +136,9 @@ fn build_ui(app: &Application) {
|
||||
FrontendEvent::EmulationStatus(s) => {
|
||||
window.set_emulation(s.into());
|
||||
}
|
||||
FrontendEvent::AuthorizedUpdated(keys) => {
|
||||
window.set_authorized_keys(keys);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user