draft auth action

This commit is contained in:
yggverse 2024-11-14 16:15:13 +02:00
parent f1b7fc9ac0
commit fc2baf7845
6 changed files with 61 additions and 6 deletions

View file

@ -40,7 +40,7 @@ impl Navigation {
action: (Rc<BrowserAction>, Rc<WindowAction>, Rc<TabAction>),
) -> Self {
// Init components
let auth = Rc::new(Auth::new(action.1.clone()));
let auth = Rc::new(Auth::new(action.2.clone()));
let home = Rc::new(Home::new(action.1.clone()));
let history = Rc::new(History::new(action.1.clone()));
let reload = Rc::new(Reload::new(action.1.clone()));

View file

@ -1,8 +1,7 @@
mod widget;
use widget::Widget;
use crate::app::browser::window::Action;
use crate::app::browser::window::tab::item::Action;
use std::rc::Rc;
pub struct Auth {

View file

@ -1,4 +1,4 @@
use crate::app::browser::window::Action;
use crate::app::browser::window::tab::item::Action;
use gtk::{
prelude::{ButtonExt, WidgetExt},
Button,
@ -19,7 +19,7 @@ impl Widget {
.sensitive(false)
.build();
// Init events @TODO
// Init events @TODO dialog window required
// gobject.connect_clicked(move |_| action.auth().activate());
// Return activated `Self`