begin identity dialog implementation

This commit is contained in:
yggverse 2024-11-17 16:28:45 +02:00
parent 12b4d441ca
commit 14c31734fd
18 changed files with 439 additions and 72 deletions

View file

@ -1,14 +1,14 @@
mod auth;
mod ident;
mod load;
use auth::Auth;
use ident::Ident;
use load::Load;
use std::rc::Rc;
/// [SimpleActionGroup](https://docs.gtk.org/gio/class.SimpleActionGroup.html) wrapper for `Browser` actions
pub struct Action {
auth: Rc<Auth>,
ident: Rc<Ident>,
load: Rc<Load>,
}
@ -18,16 +18,16 @@ impl Action {
/// Create new `Self`
pub fn new() -> Self {
Self {
auth: Rc::new(Auth::new()),
ident: Rc::new(Ident::new()),
load: Rc::new(Load::new()),
}
}
// Getters
/// Get reference to `Auth` action
pub fn auth(&self) -> &Rc<Auth> {
&self.auth
/// Get reference to `Ident` action
pub fn ident(&self) -> &Rc<Ident> {
&self.ident
}
/// Get reference to `Load` action