mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-06 12:31:29 +03:00
impl fingerprint ui logic
This commit is contained in:
22
lan-mouse-gtk/src/key_object/imp.rs
Normal file
22
lan-mouse-gtk/src/key_object/imp.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
use std::cell::RefCell;
|
||||
|
||||
use glib::Properties;
|
||||
use gtk::glib;
|
||||
use gtk::prelude::*;
|
||||
use gtk::subclass::prelude::*;
|
||||
|
||||
#[derive(Properties, Default)]
|
||||
#[properties(wrapper_type = super::KeyObject)]
|
||||
pub struct KeyObject {
|
||||
#[property(name = "fingerprint", get, set, type = String)]
|
||||
pub fingerprint: RefCell<String>,
|
||||
}
|
||||
|
||||
#[glib::object_subclass]
|
||||
impl ObjectSubclass for KeyObject {
|
||||
const NAME: &'static str = "KeyObject";
|
||||
type Type = super::KeyObject;
|
||||
}
|
||||
|
||||
#[glib::derived_properties]
|
||||
impl ObjectImpl for KeyObject {}
|
||||
Reference in New Issue
Block a user