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
|
@ -9,7 +9,7 @@ use tokio::sync::{broadcast, mpsc};
|
|||
use tokio::time::sleep;
|
||||
|
||||
use crate::config::{CommonConfig, ModuleOrientation};
|
||||
use crate::gtk_helpers::IronbarGtkExt;
|
||||
use crate::gtk_helpers::{IronbarGtkExt, IronbarLabelExt};
|
||||
use crate::modules::{
|
||||
Module, ModuleInfo, ModuleParts, ModulePopup, ModuleUpdateEvent, PopupButton, WidgetContext,
|
||||
};
|
||||
|
@ -143,7 +143,7 @@ impl Module<Button> for ClockModule {
|
|||
let rx = context.subscribe();
|
||||
glib_recv!(rx, date => {
|
||||
let date_string = format!("{}", date.format_localized(&format, locale));
|
||||
label.set_label(&date_string);
|
||||
label.set_markup_escaped(&date_string);
|
||||
});
|
||||
|
||||
let popup = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue