mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-07-26 18:37:45 +02:00
feat: Add saved WifiList
This commit is contained in:
parent
bbfd07688d
commit
9cad376a40
13 changed files with 372 additions and 126 deletions
|
@ -9,7 +9,8 @@ use gtk::gdk_pixbuf::subclass::prelude::{
|
|||
use gtk::prelude::PopupExt;
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{
|
||||
gdk, glib, Button, CompositeTemplate, Entry, EntryBuffer, PasswordEntry, PasswordEntryBuffer, Popover,
|
||||
gdk, glib, Button, CompositeTemplate, Entry, EntryBuffer, Label, PasswordEntry,
|
||||
PasswordEntryBuffer, Popover,
|
||||
};
|
||||
|
||||
use super::popup;
|
||||
|
@ -18,6 +19,8 @@ use super::popup;
|
|||
#[derive(Default, CompositeTemplate)]
|
||||
#[template(resource = "/org/Xetibo/ReSet/resetPopup.ui")]
|
||||
pub struct Popup {
|
||||
#[template_child]
|
||||
pub resetPopupLabel: TemplateChild<Label>,
|
||||
#[template_child]
|
||||
pub resetPopupEntry: TemplateChild<PasswordEntry>,
|
||||
#[template_child]
|
||||
|
@ -25,6 +28,9 @@ pub struct Popup {
|
|||
pub resetPopupText: Arc<RefCell<PasswordEntryBuffer>>,
|
||||
}
|
||||
|
||||
unsafe impl Send for Popup {}
|
||||
unsafe impl Sync for Popup {}
|
||||
|
||||
#[glib::object_subclass]
|
||||
impl ObjectSubclass for Popup {
|
||||
const NAME: &'static str = "resetPopup";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue