mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
fix: correctly escape pango markup
This commit is contained in:
parent
c28de8d902
commit
9d8a3eb370
10 changed files with 35 additions and 18 deletions
|
@ -5,6 +5,7 @@ use serde::Deserialize;
|
|||
use crate::build;
|
||||
use crate::config::ModuleOrientation;
|
||||
use crate::dynamic_value::dynamic_string;
|
||||
use crate::gtk_helpers::IronbarLabelExt;
|
||||
|
||||
use super::{CustomWidget, CustomWidgetContext};
|
||||
|
||||
|
@ -50,7 +51,7 @@ impl CustomWidget for LabelWidget {
|
|||
{
|
||||
let label = label.clone();
|
||||
dynamic_string(&self.label, move |string| {
|
||||
label.set_markup(&string);
|
||||
label.set_markup_escaped(&string);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue