mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-11 05:01:44 +00:00
use namespace
This commit is contained in:
parent
5a22e73b50
commit
9f30965e72
@ -5,7 +5,6 @@ mod window;
|
|||||||
|
|
||||||
use database::Database;
|
use database::Database;
|
||||||
use header::Header;
|
use header::Header;
|
||||||
use sqlite::Transaction;
|
|
||||||
use widget::Widget;
|
use widget::Widget;
|
||||||
use window::Window;
|
use window::Window;
|
||||||
|
|
||||||
@ -14,6 +13,7 @@ use gtk::{
|
|||||||
prelude::{ActionMapExt, GtkWindowExt},
|
prelude::{ActionMapExt, GtkWindowExt},
|
||||||
ApplicationWindow,
|
ApplicationWindow,
|
||||||
};
|
};
|
||||||
|
use sqlite::{Connection, Transaction};
|
||||||
use std::{
|
use std::{
|
||||||
path::PathBuf,
|
path::PathBuf,
|
||||||
sync::{Arc, RwLock},
|
sync::{Arc, RwLock},
|
||||||
@ -32,7 +32,7 @@ impl Browser {
|
|||||||
// Construct
|
// Construct
|
||||||
pub fn new(
|
pub fn new(
|
||||||
// Extras
|
// Extras
|
||||||
profile_database_connection: Arc<RwLock<sqlite::Connection>>,
|
profile_database_connection: Arc<RwLock<Connection>>,
|
||||||
profile_path: PathBuf,
|
profile_path: PathBuf,
|
||||||
// Actions
|
// Actions
|
||||||
action_tool_debug: Arc<SimpleAction>,
|
action_tool_debug: Arc<SimpleAction>,
|
||||||
|
@ -3,7 +3,7 @@ mod database;
|
|||||||
use database::Database;
|
use database::Database;
|
||||||
|
|
||||||
use gtk::{prelude::GtkWindowExt, ApplicationWindow, Box, HeaderBar};
|
use gtk::{prelude::GtkWindowExt, ApplicationWindow, Box, HeaderBar};
|
||||||
use sqlite::Transaction;
|
use sqlite::{Connection, Transaction};
|
||||||
use std::sync::{Arc, RwLock};
|
use std::sync::{Arc, RwLock};
|
||||||
|
|
||||||
// Default options
|
// Default options
|
||||||
@ -19,7 +19,7 @@ pub struct Widget {
|
|||||||
impl Widget {
|
impl Widget {
|
||||||
// Construct
|
// Construct
|
||||||
pub fn new(
|
pub fn new(
|
||||||
profile_database_connection: Arc<RwLock<sqlite::Connection>>,
|
profile_database_connection: Arc<RwLock<Connection>>,
|
||||||
titlebar: &HeaderBar,
|
titlebar: &HeaderBar,
|
||||||
child: &Box,
|
child: &Box,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user