[gnome-initial-setup/wip/port-to-gtk4: 6/9] assistant: Remove useless GtkBox
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/wip/port-to-gtk4: 6/9] assistant: Remove useless GtkBox
- Date: Thu, 21 Jul 2022 19:59:53 +0000 (UTC)
commit 1d23ca0e26194c59a9f4a42e2a8a5d1925f3e0ce
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]