mirror of
https://github.com/NinjaTrappeur/federatz.git
synced 2024-06-03 03:54:08 +02:00
26 lines
516 B
Rust
26 lines
516 B
Rust
use gtk4 as gtk;
|
|
use gtk::prelude::*;
|
|
use gtk::{Application, ApplicationWindow, Button, Box, Orientation};
|
|
|
|
use std::cell::RefCell;
|
|
use std::rc::Rc;
|
|
|
|
mod oauth;
|
|
mod ui;
|
|
|
|
use ui::widgets::oauth::create_oauth_assistant;
|
|
|
|
fn main() {
|
|
let app = Application::builder()
|
|
.application_id("fr.alternativebit.federatz")
|
|
.build();
|
|
|
|
app.connect_activate(build_ui);
|
|
app.run();
|
|
}
|
|
|
|
fn build_ui(app: &Application) {
|
|
let oauth_assistant = create_oauth_assistant(app);
|
|
oauth_assistant.present();
|
|
}
|