2023-02-15 05:23:49 +00:00
|
|
|
|
use adw::subclass::prelude::BinImpl;
|
2022-10-05 19:13:57 +00:00
|
|
|
|
use gtk::{self, glib, subclass::prelude::*, CompositeTemplate};
|
|
|
|
|
|
|
|
|
|
mod imp {
|
|
|
|
|
use glib::subclass::InitializingObject;
|
|
|
|
|
|
|
|
|
|
use super::*;
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, CompositeTemplate)]
|
2023-05-21 21:11:45 +00:00
|
|
|
|
#[template(resource = "/org/gnome/Fractal/ui/login/sso_page.ui")]
|
2022-10-05 19:13:57 +00:00
|
|
|
|
pub struct LoginSsoPage {}
|
|
|
|
|
|
|
|
|
|
#[glib::object_subclass]
|
|
|
|
|
impl ObjectSubclass for LoginSsoPage {
|
|
|
|
|
const NAME: &'static str = "LoginSsoPage";
|
|
|
|
|
type Type = super::LoginSsoPage;
|
|
|
|
|
type ParentType = adw::Bin;
|
|
|
|
|
|
|
|
|
|
fn class_init(klass: &mut Self::Class) {
|
|
|
|
|
Self::bind_template(klass);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn instance_init(obj: &InitializingObject<Self>) {
|
|
|
|
|
obj.init_template();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ObjectImpl for LoginSsoPage {}
|
|
|
|
|
|
|
|
|
|
impl WidgetImpl for LoginSsoPage {}
|
|
|
|
|
|
|
|
|
|
impl BinImpl for LoginSsoPage {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
glib::wrapper! {
|
|
|
|
|
/// A widget handling the login flows.
|
|
|
|
|
pub struct LoginSsoPage(ObjectSubclass<imp::LoginSsoPage>)
|
|
|
|
|
@extends gtk::Widget, adw::Bin, @implements gtk::Accessible;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl LoginSsoPage {
|
|
|
|
|
pub fn new() -> Self {
|
2023-02-15 05:23:49 +00:00
|
|
|
|
glib::Object::new()
|
2022-10-05 19:13:57 +00:00
|
|
|
|
}
|
|
|
|
|
}
|