[libadwaita/wip/exalm/markup] action-row: Enable markup on the labels
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/markup] action-row: Enable markup on the labels
- Date: Sat, 9 Oct 2021 18:53:36 +0000 (UTC)
commit 42051c3bb697f006d5a6d112eec37279c6835c85
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Oct 9 23:49:28 2021 +0500
action-row: Enable markup on the labels
Update migration guide. Merge action row and expander row sections into one
as they are copies of each other and both need to be updated.
doc/migrating-between-development-versions.md | 8 ++++----
doc/migrating-libhandy-1-4-to-libadwaita.md | 10 ++++------
src/adw-action-row.ui | 5 ++---
3 files changed, 10 insertions(+), 13 deletions(-)
---
diff --git a/doc/migrating-between-development-versions.md b/doc/migrating-between-development-versions.md
index bc8ded14..63428e1a 100644
--- a/doc/migrating-between-development-versions.md
+++ b/doc/migrating-between-development-versions.md
@@ -215,14 +215,14 @@ instead.
## Migrating from alpha 3 to alpha 4
-### Adapt to [class@Adw.ActionRow] API Changes
+### Adapt to [class@Adw.ActionRow] and [class@Adw.ExpanderRow] API Changes
The "use-underline" property and its accessors have been removed. Use
[property@Adw.PreferencesRow:use-underline] and its accessors instead.
-### Adapt to [class@Adw.ExpanderRow] API Changes
+The title and subtitle have markup enabled, make sure to escape it with
+[func@GLib.markup_escape_text] if this is unwanted.
-The "use-underline" property and its accessors have been removed. Use
-[property@Adw.PreferencesRow:use-underline] and its accessors instead.
+### Adapt to [class@Adw.ExpanderRow] API Changes
The `adw_expander_row_add ()` function has been renamed to `adw_expander_row_add_row ()`.
diff --git a/doc/migrating-libhandy-1-4-to-libadwaita.md b/doc/migrating-libhandy-1-4-to-libadwaita.md
index e6a0b119..7351cf0e 100644
--- a/doc/migrating-libhandy-1-4-to-libadwaita.md
+++ b/doc/migrating-libhandy-1-4-to-libadwaita.md
@@ -133,11 +133,14 @@ Adding children in a UI file still works.
`HdyWindowHandle` has been removed, use [class@Gtk.WindowHandle] instead.
-### Adapt to [class@Adw.ActionRow] API Changes
+### Adapt to [class@Adw.ActionRow] and [class@Adw.ExpanderRow] API Changes
The "use-underline" property and its accessors have been removed. Use
[property@Adw.PreferencesRow:use-underline] and its accessors instead.
+The title and subtitle have markup enabled, make sure to escape it with
+[func@GLib.markup_escape_text] if this is unwanted.
+
### Adapt to [class@Adw.Clamp] API Changes
`HdyClamp` previously had `.small`, `.medium` or `.large` style classes
@@ -188,11 +191,6 @@ now.
longer be manually created. It's only intended to be used with
[class@Adw.EnumListModel].
-### Adapt to [class@Adw.ExpanderRow] API Changes
-
-The "use-underline" property and its accessors have been removed. Use
-[property@Adw.PreferencesRow:use-underline] and its accessors instead.
-
### Stop Using `HdyValueObject`
`HdyValueObject` has been removed. The typical use for storing strings in
diff --git a/src/adw-action-row.ui b/src/adw-action-row.ui
index fa7c8062..ee50fd86 100644
--- a/src/adw-action-row.ui
+++ b/src/adw-action-row.ui
@@ -43,11 +43,10 @@
<property name="hexpand">True</property>
<property name="label" bind-source="AdwActionRow" bind-property="title"
bind-flags="sync-create"/>
<property name="lines">0</property>
- <property name="mnemonic-widget">AdwActionRow</property>
- <property name="use-underline" bind-source="AdwActionRow" bind-property="use-underline"
bind-flags="sync-create"/>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="xalign">0</property>
+ <property name="use-markup">True</property>
<style>
<class name="title"/>
</style>
@@ -60,10 +59,10 @@
<property name="halign">start</property>
<property name="hexpand">True</property>
<property name="lines">0</property>
- <property name="use-underline" bind-source="AdwActionRow" bind-property="use-underline"
bind-flags="sync-create"/>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="xalign">0</property>
+ <property name="use-markup">True</property>
<style>
<class name="subtitle"/>
</style>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]