[libhandy] Wrap on words or chars



commit 9d4bb6478900c508e521bf3af1eaac04037630ee
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Mon Jan 4 12:24:06 2021 +0100

    Wrap on words or chars
    
    This prevents long words from making windows too wide to fit a phone
    screen.

 src/hdy-action-row.ui        | 2 ++
 src/hdy-preferences-group.ui | 1 +
 src/hdy-status-page.ui       | 2 ++
 3 files changed, 5 insertions(+)
---
diff --git a/src/hdy-action-row.ui b/src/hdy-action-row.ui
index 9374d683..44e67b85 100644
--- a/src/hdy-action-row.ui
+++ b/src/hdy-action-row.ui
@@ -47,6 +47,7 @@
                 <property name="lines">1</property>
                 <property name="visible">True</property>
                 <property name="wrap">True</property>
+                <property name="wrap-mode">word-char</property>
                 <property name="xalign">0</property>
                 <style>
                   <class name="title"/>
@@ -61,6 +62,7 @@
                 <property name="hexpand">True</property>
                 <property name="lines">1</property>
                 <property name="wrap">True</property>
+                <property name="wrap-mode">word-char</property>
                 <property name="xalign">0</property>
                 <style>
                   <class name="subtitle"/>
diff --git a/src/hdy-preferences-group.ui b/src/hdy-preferences-group.ui
index 20f3bcac..33cfcdb9 100644
--- a/src/hdy-preferences-group.ui
+++ b/src/hdy-preferences-group.ui
@@ -26,6 +26,7 @@
             <property name="can_focus">False</property>
             <property name="halign">start</property>
             <property name="wrap">True</property>
+            <property name="wrap-mode">word-char</property>
             <property name="xalign">0</property>
             <property name="no-show-all">True</property>
             <style>
diff --git a/src/hdy-status-page.ui b/src/hdy-status-page.ui
index 297a888e..982c2892 100644
--- a/src/hdy-status-page.ui
+++ b/src/hdy-status-page.ui
@@ -32,6 +32,7 @@
                       <object class="GtkLabel" id="title_label">
                         <property name="visible">True</property>
                         <property name="wrap">True</property>
+                        <property name="wrap-mode">word-char</property>
                         <property name="justify">center</property>
                         <style>
                           <class name="title"/>
@@ -43,6 +44,7 @@
                       <object class="GtkLabel" id="description_label">
                         <property name="visible">True</property>
                         <property name="wrap">True</property>
+                        <property name="wrap-mode">word-char</property>
                         <property name="justify">center</property>
                         <property name="use-markup">True</property>
                         <style>


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