mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
use adw application
This commit is contained in:
parent
5421afd75d
commit
a27cfa37bd
2 changed files with 5 additions and 6 deletions
|
|
@ -10,11 +10,11 @@ use widget::Widget;
|
||||||
use window::Window;
|
use window::Window;
|
||||||
|
|
||||||
use crate::Profile;
|
use crate::Profile;
|
||||||
use adw::{prelude::AdwDialogExt, AboutDialog};
|
use adw::{prelude::AdwDialogExt, AboutDialog, Application};
|
||||||
use gtk::{
|
use gtk::{
|
||||||
gio::{Cancellable, File},
|
gio::{Cancellable, File},
|
||||||
prelude::{GtkWindowExt, IsA},
|
prelude::GtkWindowExt,
|
||||||
Application, FileLauncher,
|
FileLauncher,
|
||||||
};
|
};
|
||||||
use sqlite::Transaction;
|
use sqlite::Transaction;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
@ -168,7 +168,7 @@ impl Browser {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn init(&self, application: Option<&impl IsA<Application>>) -> &Self {
|
pub fn init(&self, application: Option<&Application>) -> &Self {
|
||||||
// Assign browser window to this application
|
// Assign browser window to this application
|
||||||
self.widget.application_window.set_application(application); // @TODO
|
self.widget.application_window.set_application(application); // @TODO
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,8 @@ mod profile;
|
||||||
mod tool;
|
mod tool;
|
||||||
|
|
||||||
use app::App;
|
use app::App;
|
||||||
use profile::Profile;
|
|
||||||
|
|
||||||
use gtk::glib::ExitCode;
|
use gtk::glib::ExitCode;
|
||||||
|
use profile::Profile;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
fn main() -> ExitCode {
|
fn main() -> ExitCode {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue