This commit is contained in:
Ashley Wulber 2022-08-01 11:11:26 -04:00
parent 580df62e46
commit 73d2107dc9
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
10 changed files with 5 additions and 21 deletions

1
Cargo.lock generated
View file

@ -445,7 +445,6 @@ dependencies = [
"once_cell",
"pretty_env_logger",
"rust-embed",
"tokio",
"wayland-backend",
"wayland-client 0.30.0-beta.8",
]

View file

@ -17,7 +17,6 @@ anyhow = "1.0.50"
i18n-embed = { version = "0.13.4", features = ["fluent-system", "desktop-requester"] }
i18n-embed-fl = "0.6.4"
rust-embed = "6.3.0"
tokio = { version = "1.16.1", features = ["sync"] }
wayland-backend = { version = "0.1.0-beta.8" }
wayland-client = { version = "0.30.0-beta.8" }
calloop = "*"

View file

@ -1,4 +1,4 @@
use std::{env, path::PathBuf, process::Command};
use std::{process::Command};
fn main() {
if let Some(output) = Command::new("git")

View file

@ -9,10 +9,7 @@ use gtk4::{
CssProvider, StyleContext,
};
use once_cell::sync::OnceCell;
use std::sync::{Arc, Mutex};
use tokio::sync::mpsc;
use utils::{Activate, WorkspaceEvent};
use wayland::State;
use utils::{WorkspaceEvent};
use window::CosmicWorkspacesWindow;
mod localize;

View file

@ -5,7 +5,6 @@ use std::path::PathBuf;
use gtk4::glib;
use std::future::Future;
pub type Activate = String;
#[derive(Debug, Clone)]
pub enum WorkspaceEvent {

View file

@ -1,8 +1,7 @@
// SPDX-License-Identifier: MPL-2.0-only
use crate::{fl, utils::Activate, wayland::State, workspace_list::WorkspaceList};
use crate::{fl, wayland::State, workspace_list::WorkspaceList};
use cascade::cascade;
use cosmic_panel_config::CosmicPanelConfig;
use gtk4::{
gio,
glib::{self, Object},

View file

@ -1,8 +1,5 @@
use crate::Activate;
use gtk4::{glib, subclass::prelude::*, ToggleButton};
use once_cell::sync::OnceCell;
use std::{cell::RefCell, rc::Rc};
use tokio::sync::mpsc;
// Object holding the state
#[derive(Default)]

View file

@ -1,6 +1,6 @@
mod imp;
use crate::{utils::WorkspaceEvent, workspace_object::WorkspaceObject, Activate, TX};
use crate::{utils::WorkspaceEvent, workspace_object::WorkspaceObject, TX};
use glib::Object;
use gtk4::{glib, prelude::*, subclass::prelude::*, ToggleButton};

View file

@ -1,13 +1,9 @@
// SPDX-License-Identifier: MPL-2.0-only
use cosmic_panel_config::CosmicPanelConfig;
use gtk4::subclass::prelude::*;
use gtk4::{gio, glib, EventControllerScroll};
use gtk4::{gio, glib};
use gtk4::{Box, ListView};
use once_cell::sync::OnceCell;
use tokio::sync::mpsc;
use crate::utils::Activate;
#[derive(Debug, Default)]
pub struct WorkspaceList {

View file

@ -1,6 +1,5 @@
// SPDX-License-Identifier: MPL-2.0-only
use crate::utils::Activate;
use crate::utils::WorkspaceEvent;
use crate::wayland::State;
use crate::workspace_button::WorkspaceButton;
@ -8,7 +7,6 @@ use crate::workspace_object::WorkspaceObject;
use crate::TX;
use cascade::cascade;
use cosmic_panel_config::PanelAnchor;
use cosmic_panel_config::PanelSize;
use gtk4::builders::EventControllerScrollBuilder;
use gtk4::EventControllerScrollFlags;
use gtk4::Inhibit;