1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 02:31:04 +02:00

refactor: use new smart pointer macros throughout codebase

This commit is contained in:
Jake Stanger 2023-06-29 23:16:31 +01:00
parent ac04cc27ce
commit 7016f7f79e
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
10 changed files with 23 additions and 25 deletions

View file

@ -4,7 +4,7 @@ use crate::modules::{
};
use crate::popup::Popup;
use crate::unique_id::get_unique_usize;
use crate::Config;
use crate::{arc_rw, Config};
use color_eyre::Result;
use gtk::gdk::Monitor;
use gtk::prelude::*;
@ -166,7 +166,7 @@ fn load_modules(
// popup ignores module location so can bodge this for now
let popup = Popup::new(&info!(ModuleLocation::Left), config.popup_gap);
let popup = Arc::new(RwLock::new(popup));
let popup = arc_rw!(popup);
if let Some(modules) = config.start {
let info = info!(ModuleLocation::Left);