[gnome-games/wip/exalm/actions: 10/11] remote-display: Simplify layout



commit 9735afe7b45dbd285d1d84dd4229495f28a3e654
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Jan 26 22:05:41 2020 +0500

    remote-display: Simplify layout

 data/ui/remote-display.ui | 99 +++++++++++++++++++----------------------------
 1 file changed, 40 insertions(+), 59 deletions(-)
---
diff --git a/data/ui/remote-display.ui b/data/ui/remote-display.ui
index c61add83..f390cc24 100644
--- a/data/ui/remote-display.ui
+++ b/data/ui/remote-display.ui
@@ -3,70 +3,51 @@
   <requires lib="gtk+" version="3.24"/>
   <template class="GamesRemoteDisplay" parent="GtkBox">
     <property name="visible">True</property>
-    <property name="hexpand">True</property>
-    <property name="vexpand">True</property>
+    <property name="orientation">vertical</property>
     <property name="halign">center</property>
     <property name="valign">center</property>
-
     <child>
-      <object class="GtkGrid" id="grid">
+      <object class="GtkImage" id="image">
         <property name="visible">True</property>
-        <property name="orientation">vertical</property>
+        <property name="icon-name">preferences-desktop-remote-desktop-symbolic</property>
+        <property name="pixel-size">256</property>
+        <property name="margin-bottom">24</property>
+      </object>
+    </child>
+    <child>
+      <object class="GtkLabel" id="no_boxes_found_label">
+        <property name="visible">True</property>
+        <property name="use-markup">True</property>
+        <property name="halign">center</property>
+        <property name="margin-bottom">6</property>
+        <property name="label" translatable="yes">Use the game’s own window to play it</property>
+        <attributes>
+          <attribute name="weight" value="bold"/>
+          <!-- "1.2" is the value of "large" -->
+          <attribute name="scale" value="1.2"/>
+        </attributes>
+      </object>
+    </child>
+    <child>
+      <object class="GtkLabel" id="definition_label">
+        <property name="visible">True</property>
+        <property name="use-markup">True</property>
+        <property name="halign">center</property>
+        <property name="label" translatable="yes">This game isn’t integrated with GNOME Games.</property>
+        <style>
+          <class name="dim-label"/>
+        </style>
+      </object>
+    </child>
+    <child>
+      <object class="GtkLabel" id="instructions_label">
+        <property name="visible">True</property>
+        <property name="use-markup">True</property>
         <property name="halign">center</property>
-        <property name="valign">center</property>
-
-        <child>
-          <object class="GtkImage" id="image">
-            <property name="visible">True</property>
-            <property name="icon-name">preferences-desktop-remote-desktop-symbolic</property>
-            <property name="pixel-size">256</property>
-            <property name="halign">center</property>
-            <property name="valign">center</property>
-            <property name="margin-bottom">24</property>
-          </object>
-        </child>
-
-        <child>
-          <object class="GtkLabel" id="no_boxes_found_label">
-            <property name="visible">True</property>
-            <property name="use-markup">True</property>
-            <property name="halign">center</property>
-            <property name="vexpand">True</property>
-            <property name="margin-bottom">6</property>
-            <property name="label" translatable="yes">Use the game’s own window to play it</property>
-            <attributes>
-              <attribute name="weight" value="bold"/>
-              <!-- "1.2" is the value of "large" -->
-              <attribute name="scale" value="1.2"/>
-            </attributes>
-          </object>
-        </child>
-
-        <child>
-          <object class="GtkLabel" id="definition_label">
-            <property name="visible">True</property>
-            <property name="use-markup">True</property>
-            <property name="halign">center</property>
-            <property name="vexpand">True</property>
-            <property name="label" translatable="yes">This game isn’t integrated with GNOME Games.</property>
-            <style>
-              <class name="dim-label"/>
-            </style>
-          </object>
-        </child>
-
-        <child>
-          <object class="GtkLabel" id="instructions_label">
-            <property name="visible">True</property>
-            <property name="use-markup">True</property>
-            <property name="halign">center</property>
-            <property name="vexpand">True</property>
-            <property name="label" translatable="yes">You have to use its own window to play it.</property>
-            <style>
-              <class name="dim-label"/>
-            </style>
-          </object>
-        </child>
+        <property name="label" translatable="yes">You have to use its own window to play it.</property>
+        <style>
+          <class name="dim-label"/>
+        </style>
       </object>
     </child>
   </template>


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