[gnome-builder] preferences-window: Reorganize inner boxes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] preferences-window: Reorganize inner boxes
- Date: Fri, 15 Jul 2022 16:55:55 +0000 (UTC)
commit e2bb97042938b6728762540a577651ceab6a6492
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Jul 15 12:45:14 2022 -0300
preferences-window: Reorganize inner boxes
IdePreferencesWindow currently has a horizontal box handling both
headerbars, and another horizontal box handling the sidebar and
the page content stack. This works, but allows the sidebar size
get out of sync with the left headerbar.
Reorganize these boxes to have a vertical box with headerbar and
sidebar, and another vertical box with headerbar and page content
stack. There's now only a single separator, separating these two
vertical boxes.
src/libide/gui/ide-preferences-window.ui | 47 +++++++++++++-------------------
1 file changed, 19 insertions(+), 28 deletions(-)
---
diff --git a/src/libide/gui/ide-preferences-window.ui b/src/libide/gui/ide-preferences-window.ui
index 775e99904..15419075f 100644
--- a/src/libide/gui/ide-preferences-window.ui
+++ b/src/libide/gui/ide-preferences-window.ui
@@ -5,10 +5,10 @@
<template class="IdePreferencesWindow" parent="AdwApplicationWindow">
<child>
<object class="GtkBox">
- <property name="orientation">vertical</property>
+ <property name="orientation">horizontal</property>
<child>
<object class="GtkBox">
- <property name="orientation">horizontal</property>
+ <property name="orientation">vertical</property>
<child>
<object class="AdwHeaderBar" id="left">
<property name="title-widget">
@@ -39,10 +39,25 @@
</object>
</child>
<child>
- <object class="GtkSeparator">
- <property name="orientation">vertical</property>
+ <object class="GtkStack" id="pages_stack">
+ <property name="transition-type">slide-left-right</property>
+ <property name="transition-duration">300</property>
+ <property name="vexpand">true</property>
+ <property name="hexpand">false</property>
+ <property name="width-request">300</property>
</object>
</child>
+ </object>
+ </child>
+
+ <child>
+ <object class="GtkSeparator" />
+ </child>
+
+ <child>
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
+
<child>
<object class="AdwHeaderBar" id="right">
<property name="hexpand">true</property>
@@ -53,30 +68,6 @@
</property>
</object>
</child>
- </object>
- </child>
- <child>
- <object class="GtkBox">
- <property name="vexpand">true</property>
- <child>
- <object class="GtkBox">
- <property name="orientation">vertical</property>
- <property name="width-request">300</property>
- <property name="hexpand">false</property>
- <child>
- <object class="GtkStack" id="pages_stack">
- <property name="transition-type">slide-left-right</property>
- <property name="transition-duration">300</property>
- <property name="vexpand">true</property>
- </object>
- </child>
- </object>
- </child>
- <child>
- <object class="GtkSeparator">
- <property name="orientation">vertical</property>
- </object>
- </child>
<child>
<object class="GtkStack" id="page_stack">
<property name="hexpand">true</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]