mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
begin identity dialog implementation
This commit is contained in:
parent
12b4d441ca
commit
14c31734fd
18 changed files with 439 additions and 72 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue