1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 14:51:04 +02:00

Revert "Fix Pango markup not escaped"

This commit is contained in:
Jake Stanger 2024-06-02 17:42:18 +01:00 committed by GitHub
parent 0085e51ff6
commit a9a32817e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 23 additions and 40 deletions

View file

@ -9,7 +9,7 @@ use zbus;
use zbus::fdo::PropertiesProxy;
use crate::config::CommonConfig;
use crate::gtk_helpers::{IronbarGtkExt, IronbarLabelExt};
use crate::gtk_helpers::IronbarGtkExt;
use crate::image::ImageProvider;
use crate::modules::PopupButton;
use crate::modules::{
@ -212,7 +212,7 @@ impl Module<gtk::Button> for UpowerModule {
ImageProvider::parse(&icon_name, &icon_theme, false, self.icon_size)
.map(|provider| provider.load_into_image(icon.clone()));
label.set_markup_escaped(format.as_ref());
label.set_markup(format.as_ref());
});
let rx = context.subscribe();
@ -263,7 +263,7 @@ impl Module<gtk::Button> for UpowerModule {
_ => String::new(),
};
label.set_markup_escaped(&format);
label.set_markup(&format);
});
container.show_all();