[gnome-initial-setup/wjt/farewell-GtkFrame] summary: Remove GtkFrame




commit 7dda93b19a068d5d87fe01e895cdae50e20e4272
Author: Will Thompson <will willthompson co uk>
Date:   Tue Dec 28 14:43:59 2021 +0000

    summary: Remove GtkFrame
    
    This has been unnecessary since 8a5358cfcfbb8a6d284bfb3a25d4c82ee39d8193
    ("summary: fix layout on low resolution screens") and has no visual
    impact since the GtkFrame has no label and sets shadow-type to NONE to
    display no outline.
    
    (GTK 4 removes the shadow-type property.)

 .../pages/summary/gis-summary-page.ui              | 120 ++++++++++-----------
 1 file changed, 56 insertions(+), 64 deletions(-)
---
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.ui 
b/gnome-initial-setup/pages/summary/gis-summary-page.ui
index 9f9c5eb2..cf2c2dee 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.ui
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.ui
@@ -3,81 +3,73 @@
   <!-- interface-requires gtk+ 3.0 -->
   <template class="GisSummaryPage" parent="GisPage">
     <child>
-      <object class="GtkFrame" id="bg_frame">
+      <object class="GtkBox" id="box">
         <property name="visible">True</property>
-        <property name="hexpand">True</property>
-        <property name="vexpand">True</property>
-        <property name="shadow-type">none</property>
+        <property name="halign">center</property>
+        <property name="valign">center</property>
+        <property name="orientation">vertical</property>
+        <property name="spacing">16</property>
+        <child type="center">
+          <object class="GtkImage" id="image">
+            <property name="visible">True</property>
+            <property name="resource">/org/gnome/initial-setup/ready-to-go.svg</property>
+            <property name="width_request">128</property>
+            <property name="height_request">128</property>
+          </object>
+          <packing>
+            <property name="pack_type">start</property>
+          </packing>
+        </child>
         <child>
-          <object class="GtkBox" id="box">
+          <object class="GtkButton" id="start_button">
             <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">False</property>
+            <property name="use_underline">True</property>
             <property name="halign">center</property>
-            <property name="valign">center</property>
-            <property name="orientation">vertical</property>
-            <property name="spacing">16</property>
-            <child type="center">
-              <object class="GtkImage" id="image">
-                <property name="visible">True</property>
-                <property name="resource">/org/gnome/initial-setup/ready-to-go.svg</property>
-                <property name="width_request">128</property>
-                <property name="height_request">128</property>
-              </object>
-              <packing>
-                <property name="pack_type">start</property>
-              </packing>
-            </child>
-            <child>
-              <object class="GtkButton" id="start_button">
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="receives_default">False</property>
-                <property name="use_underline">True</property>
-                <property name="halign">center</property>
-                <style>
-                  <class name="suggested-action"/>
-                </style>
-                <child>
-                  <object class="GtkLabel" id="start_button_label">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="justify">center</property>
-                    <property name="wrap">True</property>
-                    <property name="xpad">8</property>
-                    <property name="ypad">8</property>
-                    <property name="use_underline">True</property>
-                  </object>
-                </child>
-              </object>
-              <packing>
-                <property name="pack_type">end</property>
-              </packing>
-            </child>
-            <child>
-              <object class="GtkLabel" id="tagline">
-                <property name="visible">True</property>
-                <property name="justify">center</property>
-                <property name="wrap">True</property>
-                <property name="max-width-chars">60</property>
-              </object>
-              <packing>
-                <property name="pack_type">end</property>
-              </packing>
-            </child>
+            <style>
+              <class name="suggested-action"/>
+            </style>
             <child>
-              <object class="GtkLabel" id="title">
+              <object class="GtkLabel" id="start_button_label">
                 <property name="visible">True</property>
+                <property name="can_focus">False</property>
                 <property name="justify">center</property>
-                <property name="label" translatable="yes">All done!</property>
                 <property name="wrap">True</property>
-                <style>
-                  <class name="large-title"/>
-                </style>
+                <property name="xpad">8</property>
+                <property name="ypad">8</property>
+                <property name="use_underline">True</property>
               </object>
-              <packing>
-                <property name="pack_type">end</property>
-              </packing>
             </child>
           </object>
+          <packing>
+            <property name="pack_type">end</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="tagline">
+            <property name="visible">True</property>
+            <property name="justify">center</property>
+            <property name="wrap">True</property>
+            <property name="max-width-chars">60</property>
+          </object>
+          <packing>
+            <property name="pack_type">end</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="title">
+            <property name="visible">True</property>
+            <property name="justify">center</property>
+            <property name="label" translatable="yes">All done!</property>
+            <property name="wrap">True</property>
+            <style>
+              <class name="large-title"/>
+            </style>
+          </object>
+          <packing>
+            <property name="pack_type">end</property>
+          </packing>
         </child>
       </object>
     </child>


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