[simple-scan] Set minimal length of Scan and Stop buttons to 6 characters



commit 22a6dee6d9bd30b0c9b81b6b2207e96c3506d43b
Author: Bartosz Kosiorek <gang65 poczta onet pl>
Date:   Mon Dec 2 23:21:21 2019 +0100

    Set minimal length of Scan and Stop buttons to 6 characters
    
    With English, the "Stop" and "Scan" buttons have the same numbers
    of letters. Unfortunately with different translation it is different.
    For example:
     - In Polish it is "Stop" and "Skanuj".
     - In Chinese is it "停止" and msgstr "扫描".
    
    To do not have too small Scan/Stop button,
    and to decrease Scan/Stop buttons size differency I have set minimal
    Scan/Stop button length to 6 characters.

 src/app-window.ui | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/app-window.ui b/src/app-window.ui
index b1a1cad..e0e16c0 100644
--- a/src/app-window.ui
+++ b/src/app-window.ui
@@ -539,6 +539,8 @@
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">S_top</property>
                         <property name="use_underline">True</property>
+                        <property name="width_chars">6</property>
+                        <property name="xalign">0.33</property>
                       </object>
                       <packing>
                         <property name="expand">False</property>
@@ -591,6 +593,8 @@
                         <property name="margin_right">1</property>
                         <property name="label" translatable="yes">_Scan</property>
                         <property name="use_underline">True</property>
+                        <property name="width_chars">6</property>
+                        <property name="xalign">0.33</property>
                       </object>
                       <packing>
                         <property name="expand">False</property>


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