mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-18 07:11:04 +02:00
parent
56153f189a
commit
b2db7b0bb5
10 changed files with 51 additions and 30 deletions
|
@ -1,4 +1,5 @@
|
|||
use crate::config::CommonConfig;
|
||||
use crate::gtk_helpers::IronbarLabelExt;
|
||||
use crate::modules::{Module, ModuleInfo, ModuleParts, ModuleUpdateEvent, WidgetContext};
|
||||
use crate::script::{OutputStream, Script, ScriptMode};
|
||||
use crate::{glib_recv, module_impl, spawn, try_send};
|
||||
|
@ -103,7 +104,7 @@ impl Module<Label> for ScriptModule {
|
|||
|
||||
{
|
||||
let label = label.clone();
|
||||
glib_recv!(context.subscribe(), s => label.set_markup(s.as_str()));
|
||||
glib_recv!(context.subscribe(), s => label.set_label_escaped(&s));
|
||||
}
|
||||
|
||||
Ok(ModuleParts {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue