[gnome-maps] mainWindow: Change no network view layout



commit 5f94bb15d5b2efe3e782745debb239c00e7b5c85
Author: mimi89999 <michel lebihan pl>
Date:   Sat May 2 22:32:03 2020 +0200

    mainWindow: Change no network view layout
    
    Horizontal no-network-conn-message GtkGrid is too wide for mobile
    devices

 data/ui/main-window.ui | 58 ++++++++++++++++++++++----------------------------
 1 file changed, 26 insertions(+), 32 deletions(-)
---
diff --git a/data/ui/main-window.ui b/data/ui/main-window.ui
index 26503a81..f041f706 100644
--- a/data/ui/main-window.ui
+++ b/data/ui/main-window.ui
@@ -82,9 +82,12 @@
             <child>
               <object class="GtkGrid" id="noNetworkView">
                 <property name="visible">True</property>
+                <property name="orientation">vertical</property>
                 <property name="can_focus">False</property>
                 <property name="halign">center</property>
                 <property name="valign">center</property>
+                <property name="row_spacing">6</property>
+                <property name="margin">18</property>
                 <child>
                   <object class="GtkImage" id="no-network-conn-image">
                     <property name="visible">True</property>
@@ -93,38 +96,29 @@
                   </object>
                 </child>
                 <child>
-                  <object class="GtkGrid" id="no-network-conn-message">
-                    <property name="visible">True</property>
-                    <property name="orientation">vertical</property>
-                    <property name="margin-start">15</property>
-                    <child>
-                      <object class="GtkLabel" id="no-network-conn-header">
-                        <attributes>
-                          <attribute name="weight" value="bold" />
-                          <attribute name="scale" value="2" />
-                        </attributes>
-                        <property name="label" translatable="yes">Maps is offline!</property>
-                        <property name="halign">start</property>
-                      </object>
-                    </child>
-                    <child>
-                      <object class="GtkLabel" id="no-network-conn-text-1">
-                        <property name="wrap">True</property>
-                        <property name="max-width-chars">45</property>
-                        <property name="margin_top">10</property>
-                        <property name="xalign">0</property>
-                        <property name="label" translatable="yes">Maps need an active internet connection to 
function properly, but one can’t be found.</property>
-                      </object>
-                    </child>
-                    <child>
-                      <object class="GtkLabel" id="no-network-conn-text-2">
-                        <property name="margin-top">2</property>
-                        <property name="wrap">True</property>
-                        <property name="max-width-chars">45</property>
-                        <property name="xalign">0</property>
-                        <property name="label" translatable="yes">Check your connection and proxy 
settings.</property>
-                      </object>
-                    </child>
+                  <object class="GtkLabel" id="no-network-conn-header">
+                    <attributes>
+                      <attribute name="weight" value="bold" />
+                      <attribute name="scale" value="2" />
+                    </attributes>
+                    <property name="label" translatable="yes">Maps is offline!</property>
+                    <property name="justify">center</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkLabel" id="no-network-conn-text-1">
+                    <property name="wrap">True</property>
+                    <property name="max-width-chars">45</property>
+                    <property name="label" translatable="yes">Maps need an active internet connection to 
function properly, but one can’t be found.</property>
+                    <property name="justify">center</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkLabel" id="no-network-conn-text-2">
+                    <property name="wrap">True</property>
+                    <property name="max-width-chars">45</property>
+                    <property name="label" translatable="yes">Check your connection and proxy 
settings.</property>
+                    <property name="justify">center</property>
                   </object>
                 </child>
               </object>


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