mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
reorganize widget modules
This commit is contained in:
parent
b9b226cc54
commit
4903968309
47 changed files with 352 additions and 786 deletions
|
|
@ -1,7 +1,6 @@
|
|||
mod browser;
|
||||
|
||||
use std::fs;
|
||||
use std::sync::Arc;
|
||||
|
||||
use gtk::prelude::{ApplicationExt, ApplicationExtManual, GtkApplicationExt, GtkWindowExt};
|
||||
|
||||
|
|
@ -32,6 +31,7 @@ fn main() -> glib::ExitCode {
|
|||
}
|
||||
|
||||
// Init profile database
|
||||
/* @TODO
|
||||
let mut db = fs.clone();
|
||||
|
||||
db.push("database.sqlite3");
|
||||
|
|
@ -39,12 +39,11 @@ fn main() -> glib::ExitCode {
|
|||
let db = match sqlite::open(db) {
|
||||
Ok(db) => Arc::new(db),
|
||||
Err(e) => panic!("Failed to connect profile database: {e}"),
|
||||
};
|
||||
};*/
|
||||
|
||||
move |this: &Application| {
|
||||
browser::Browser::new(this, db.clone(), 640, 480)
|
||||
browser::Browser::new(this, /*db.clone(),*/ 640, 480)
|
||||
.widget()
|
||||
.window()
|
||||
.present();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue