mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: replace channel macros with ext trait methods
This commit is contained in:
parent
d5744f597c
commit
f929aef2d9
50 changed files with 658 additions and 476 deletions
|
@ -3,11 +3,12 @@ use std::cell::RefCell;
|
|||
use std::collections::HashMap;
|
||||
use std::rc::Rc;
|
||||
|
||||
use crate::channels::BroadcastReceiverExt;
|
||||
use crate::clients::wayland::{OutputEvent, OutputEventType};
|
||||
use crate::config::BarPosition;
|
||||
use crate::gtk_helpers::{IronbarGtkExt, WidgetGeometry};
|
||||
use crate::modules::{ModuleInfo, ModulePopupParts, PopupButton};
|
||||
use crate::{Ironbar, glib_recv, rc_mut};
|
||||
use crate::{Ironbar, rc_mut};
|
||||
use gtk::prelude::*;
|
||||
use gtk::{ApplicationWindow, Button, Orientation};
|
||||
use gtk_layer_shell::LayerShell;
|
||||
|
@ -124,10 +125,8 @@ impl Popup {
|
|||
}
|
||||
};
|
||||
|
||||
glib_recv!(
|
||||
ironbar.clients.borrow_mut().wayland().subscribe_outputs(),
|
||||
on_output_event
|
||||
);
|
||||
let rx = ironbar.clients.borrow_mut().wayland().subscribe_outputs();
|
||||
rx.recv_glib(on_output_event);
|
||||
}
|
||||
|
||||
Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue