[libadwaita] preferences-group: Use the markup for labels



commit 3e9ae3fc25c46f221e4636eb46221ccd60fae5d0
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Aug 11 15:26:26 2021 +0200

    preferences-group: Use the markup for labels

 doc/migrating-libhandy-1-4-to-libadwaita.md | 5 +++++
 src/adw-preferences-group.ui                | 2 ++
 2 files changed, 7 insertions(+)
---
diff --git a/doc/migrating-libhandy-1-4-to-libadwaita.md b/doc/migrating-libhandy-1-4-to-libadwaita.md
index e0cfab44..956afc99 100644
--- a/doc/migrating-libhandy-1-4-to-libadwaita.md
+++ b/doc/migrating-libhandy-1-4-to-libadwaita.md
@@ -160,6 +160,11 @@ requiring an expression.
 The `HdyComboRow:selected-index` property has been renamed to
 [property@Adw.ComboRow:selected], matching [class@Gtk.DropDown].
 
+### Adapt to [class@Adw.PreferencesGroup] API Changes
+
+`HdyPreferencesGroup:use-markup` has been removed, the labels always use markup
+now.
+
 ### Stop Creating `HdyEnumValueObject` Instances
 
 [class@Adw.EnumValueObject] can no longer be manually created and is only
diff --git a/src/adw-preferences-group.ui b/src/adw-preferences-group.ui
index 511d70c7..adaba974 100644
--- a/src/adw-preferences-group.ui
+++ b/src/adw-preferences-group.ui
@@ -11,6 +11,7 @@
             <property name="can_focus">False</property>
             <property name="ellipsize">end</property>
             <property name="halign">start</property>
+            <property name="use-markup">True</property>
             <property name="xalign">0</property>
             <style>
               <class name="heading"/>
@@ -24,6 +25,7 @@
             <property name="visible">False</property>
             <property name="can_focus">False</property>
             <property name="halign">start</property>
+            <property name="use-markup">True</property>
             <property name="wrap">True</property>
             <property name="wrap-mode">word-char</property>
             <property name="xalign">0</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]