[gnome-initial-setup/wip/port-to-gtk4: 18/23] assistant: Remove useless GtkBox




commit 287aeab14a249adcc7d5a9fe1ccbe5cde38008c1
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Jul 16 10:29:08 2022 -0300

    assistant: Remove useless GtkBox
    
    This box has a single child, and is unused from the C code. Remove
    it.

 gnome-initial-setup/gis-assistant.c  |  2 --
 gnome-initial-setup/gis-assistant.ui | 20 +++++++-------------
 2 files changed, 7 insertions(+), 15 deletions(-)
---
diff --git a/gnome-initial-setup/gis-assistant.c b/gnome-initial-setup/gis-assistant.c
index e17c9865..6e0523cf 100644
--- a/gnome-initial-setup/gis-assistant.c
+++ b/gnome-initial-setup/gis-assistant.c
@@ -52,7 +52,6 @@ struct _GisAssistant
   GtkWidget *back;
   GtkWidget *cancel;
 
-  GtkWidget *main_layout;
   GtkWidget *spinner;
   GtkWidget *titlebar;
   GtkWidget *title;
@@ -482,7 +481,6 @@ gis_assistant_class_init (GisAssistantClass *klass)
   gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (klass), GisAssistant, back);
   gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (klass), GisAssistant, cancel);
 
-  gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (klass), GisAssistant, main_layout);
   gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (klass), GisAssistant, spinner);
   gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (klass), GisAssistant, titlebar);
   gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (klass), GisAssistant, title);
diff --git a/gnome-initial-setup/gis-assistant.ui b/gnome-initial-setup/gis-assistant.ui
index 08735f71..99d1e6da 100644
--- a/gnome-initial-setup/gis-assistant.ui
+++ b/gnome-initial-setup/gis-assistant.ui
@@ -62,19 +62,13 @@
   <template class="GisAssistant" parent="GtkBox">
     <property name="orientation">vertical</property>
     <child>
-      <object class="GtkBox" id="main_layout">
-        <property name="orientation">vertical</property>
-        <property name="spacing">12</property>
-        <child>
-          <object class="GtkStack" id="stack">
-            <property name="transition-type">slide-left-right</property>
-            <property name="vexpand">True</property>
-            <property name="hexpand">True</property>
-            <property name="hhomogeneous">False</property>
-            <property name="vhomogeneous">False</property>
-            <signal name="notify::visible-child" handler="visible_child_changed" object="GisAssistant" 
swapped="yes"/>
-          </object>
-        </child>
+      <object class="GtkStack" id="stack">
+        <property name="transition-type">slide-left-right</property>
+        <property name="vexpand">True</property>
+        <property name="hexpand">True</property>
+        <property name="hhomogeneous">False</property>
+        <property name="vhomogeneous">False</property>
+        <signal name="notify::visible-child" handler="visible_child_changed" object="GisAssistant" 
swapped="yes"/>
       </object>
     </child>
   </template>


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