[gnome-software: 3/24] gs-category-page: Remove two redundant GtkBoxes from the UI
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 3/24] gs-category-page: Remove two redundant GtkBoxes from the UI
- Date: Mon, 3 May 2021 15:24:12 +0000 (UTC)
commit 42cce4bee9045ed04b9f721d790bc7e58117ad5d
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Apr 21 15:57:28 2021 +0100
gs-category-page: Remove two redundant GtkBoxes from the UI
This doesn’t impact the UI at all.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
src/gs-category-page.ui | 110 +++++++++++++++++++++---------------------------
1 file changed, 49 insertions(+), 61 deletions(-)
---
diff --git a/src/gs-category-page.ui b/src/gs-category-page.ui
index fd163c44d..41432104f 100644
--- a/src/gs-category-page.ui
+++ b/src/gs-category-page.ui
@@ -4,77 +4,65 @@
<template class="GsCategoryPage" parent="GsPage">
<child>
- <object class="GtkBox" id="box_category">
+ <object class="GtkScrolledWindow" id="scrolledwindow_category">
<property name="visible">True</property>
+ <property name="shadow_type">none</property>
+ <property name="hscrollbar_policy">never</property>
+ <property name="vscrollbar_policy">automatic</property>
<child>
- <object class="GtkBox" id="box_category_results">
+ <object class="GtkViewport" id="viewport3">
<property name="visible">True</property>
- <property name="orientation">vertical</property>
- <property name="spacing">9</property>
<child>
- <object class="GtkScrolledWindow" id="scrolledwindow_category">
+ <object class="GsFixedSizeBin" id="gs_fixed_bin">
<property name="visible">True</property>
- <property name="shadow_type">none</property>
- <property name="hscrollbar_policy">never</property>
- <property name="vscrollbar_policy">automatic</property>
+ <!-- This is 3*420 plus margins, paddings, CSS borders -->
+ <property name="preferred-width">1338</property>
<child>
- <object class="GtkViewport" id="viewport3">
+ <object class="GtkBox">
<property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">9</property>
+ <property name="valign">start</property>
<child>
- <object class="GsFixedSizeBin" id="gs_fixed_bin">
+ <object class="GtkLabel" id="featured_heading">
<property name="visible">True</property>
- <!-- This is 3*420 plus margins, paddings, CSS borders -->
- <property name="preferred-width">1338</property>
- <child>
- <object class="GtkBox">
- <property name="visible">True</property>
- <property name="orientation">vertical</property>
- <property name="spacing">9</property>
- <property name="valign">start</property>
- <child>
- <object class="GtkLabel" id="featured_heading">
- <property name="visible">True</property>
- <property name="xalign">0</property>
- <property name="margin_start">24</property>
- <property name="margin_top">24</property>
- <property name="margin_end">24</property>
- <accessibility>
- <relation target="featured_grid" type="label-for"/>
- </accessibility>
- <style>
- <class name="index-title-alignment-software"/>
- </style>
- </object>
- </child>
- <child>
- <object class="GtkGrid" id="featured_grid">
- <property name="visible">False</property>
- <property name="column_spacing">14</property>
- <property name="margin_start">24</property>
- <property name="margin_end">24</property>
- </object>
- </child>
+ <property name="xalign">0</property>
+ <property name="margin_start">24</property>
+ <property name="margin_top">24</property>
+ <property name="margin_end">24</property>
+ <accessibility>
+ <relation target="featured_grid" type="label-for"/>
+ </accessibility>
+ <style>
+ <class name="index-title-alignment-software"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkGrid" id="featured_grid">
+ <property name="visible">False</property>
+ <property name="column_spacing">14</property>
+ <property name="margin_start">24</property>
+ <property name="margin_end">24</property>
+ </object>
+ </child>
- <child>
- <object class="GtkFlowBox" id="category_detail_box">
- <property name="margin_start">24</property>
- <property name="margin_end">24</property>
- <property name="margin_top">14</property>
- <property name="margin_bottom">21</property>
- <property name="halign">fill</property>
- <property name="visible">True</property>
- <property name="row_spacing">14</property>
- <property name="column_spacing">14</property>
- <property name="homogeneous">True</property>
- <property name="hexpand">True</property>
- <property name="vexpand">True</property>
- <property name="valign">start</property>
- <property name="min-children-per-line">2</property>
- <property name="selection-mode">none</property>
- </object>
- </child>
- </object>
- </child>
+ <child>
+ <object class="GtkFlowBox" id="category_detail_box">
+ <property name="margin_start">24</property>
+ <property name="margin_end">24</property>
+ <property name="margin_top">14</property>
+ <property name="margin_bottom">21</property>
+ <property name="halign">fill</property>
+ <property name="visible">True</property>
+ <property name="row_spacing">14</property>
+ <property name="column_spacing">14</property>
+ <property name="homogeneous">True</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="valign">start</property>
+ <property name="min-children-per-line">2</property>
+ <property name="selection-mode">none</property>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]