Skip to content

Commit 4b71cde

Browse files
committed
GNOME 48: make sure markup is correctly applied
On GNOME 48, clutterText.use_markup must be set after setting the actual text. https://gjs-docs.gnome.org/clutter10~10/clutter.text#method-set_markup Fixes #169
1 parent cd0de7c commit 4b71cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

[email protected]/lineview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ class ArgosLineView extends St.BoxLayout {
9292
this.add_child(label);
9393

9494
let clutterText = label.get_clutter_text();
95-
clutterText.use_markup = true;
9695
clutterText.text = line.markup;
96+
clutterText.use_markup = true;
9797

9898
if (line.hasOwnProperty("length")) {
9999
let maxLength = parseInt(line.length, 10);

0 commit comments

Comments
 (0)