Skip to content

Commit e863a8f

Browse files
committed
dialogs folder
1 parent 498e077 commit e863a8f

7 files changed

Lines changed: 16 additions & 11 deletions

File tree

src/dialogs/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
pub mod create_distrobox_dialog;
2+
pub mod exportable_apps_dialog;
3+
pub mod preferences_dialog;
4+
pub mod task_manager_dialog;
5+
6+
pub use create_distrobox_dialog::CreateDistroboxDialog;
7+
pub use exportable_apps_dialog::ExportableAppsDialog;
8+
pub use preferences_dialog::PreferencesDialog;
9+
pub use task_manager_dialog::TaskManagerDialog;

src/main.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,23 @@
2121
mod application;
2222
mod config;
2323
mod container;
24-
mod create_distrobox_dialog;
24+
mod dialogs;
2525
mod distro_combo_row_item;
2626
mod distro_icon;
2727
mod distrobox;
2828
mod distrobox_task;
29-
mod exportable_apps_dialog;
29+
mod fakers;
3030
mod gtk_utils;
3131
mod known_distros;
32-
mod preferences_dialog;
3332
mod remote_resource;
3433
mod sidebar_row;
3534
mod store;
3635
mod supported_terminals;
3736
mod tagged_object;
38-
mod task_manager_dialog;
3937
mod tasks_button;
4038
mod terminal_combo_row;
4139
mod welcome_view;
4240
mod window;
43-
mod fakers;
4441
pub use store::root_store;
4542

4643
use self::application::DistroShelfApplication;
@@ -76,7 +73,8 @@ fn main() -> glib::ExitCode {
7673
// Create a new GtkApplication. The application manages our main loop,
7774
// application windows, integration with the window manager/compositor, and
7875
// desktop features such as file opening and single-instance applications.
79-
let app = DistroShelfApplication::new("com.ranfdev.DistroShelf", &gio::ApplicationFlags::empty());
76+
let app =
77+
DistroShelfApplication::new("com.ranfdev.DistroShelf", &gio::ApplicationFlags::empty());
8078

8179
// Run the application. This function will block until the application
8280
// exits. Upon return, we have our exit code to return to the shell. (This

src/window.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@
1919
*/
2020

2121
use crate::container::Container;
22-
use crate::create_distrobox_dialog::CreateDistroboxDialog;
23-
use crate::exportable_apps_dialog::ExportableAppsDialog;
22+
use crate::dialogs::{
23+
CreateDistroboxDialog, ExportableAppsDialog, PreferencesDialog, TaskManagerDialog,
24+
};
2425
use crate::gtk_utils::reaction;
25-
use crate::known_distros::PackageManager;
26-
use crate::preferences_dialog::PreferencesDialog;
2726
use crate::root_store::RootStore;
2827
use crate::sidebar_row::SidebarRow;
2928
use crate::tagged_object::TaggedObject;
30-
use crate::task_manager_dialog::TaskManagerDialog;
3129
use crate::tasks_button::TasksButton;
3230
use adw::prelude::*;
3331
use adw::subclass::prelude::*;

0 commit comments

Comments
 (0)