structure: Create a module for custom event loops

This commit is contained in:
Dorota Czaplejewicz
2022-12-01 12:13:36 +00:00
parent 38165ac039
commit 783ca9ae11
6 changed files with 12 additions and 3 deletions

9
src/actors/external/mod.rs vendored Normal file
View File

@ -0,0 +1,9 @@
/*
* Copyright (C) 2022 Purism SPC
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
/*! Contains actors with custom event loops, not based off of the event_loop module. */
pub mod debug;

View File

@ -20,4 +20,5 @@ and by receiving updates from it.
// Panel contains state and logic to protect the main state from getting flooded // Panel contains state and logic to protect the main state from getting flooded
// with low-level wayland and gtk sizing events. // with low-level wayland and gtk sizing events.
pub mod external;
pub mod popover; pub mod popover;

View File

@ -26,7 +26,6 @@ mod action;
mod actors; mod actors;
mod animation; mod animation;
pub mod data; pub mod data;
mod debug;
mod drawing; mod drawing;
mod event_loop; mod event_loop;
pub mod float_ord; pub mod float_ord;

View File

@ -4,8 +4,8 @@
/*! Glue for the main loop. */ /*! Glue for the main loop. */
use crate::actors; use crate::actors;
use crate::actors::external::debug;
use crate::animation; use crate::animation;
use crate::debug;
use crate::data::loading; use crate::data::loading;
use crate::event_loop; use crate::event_loop;
use crate::panel; use crate::panel;

View File

@ -5,8 +5,8 @@
/*! Application-wide state is stored here. /*! Application-wide state is stored here.
* It's driven by the loop defined in the loop module. */ * It's driven by the loop defined in the loop module. */
use crate::actors::external::debug;
use crate::animation; use crate::animation;
use crate::debug;
use crate::event_loop; use crate::event_loop;
use crate::event_loop::ActorState; use crate::event_loop::ActorState;
use crate::imservice::{ ContentHint, ContentPurpose }; use crate::imservice::{ ContentHint, ContentPurpose };