user-controls: Remove AdwPreferencesPage

AdwPreferencesPage is intended to be used as the first widget
inside page. It has an AdwClamp and a scrolled window to handle
just that.

Putting it in the MctUserControls widget is undesired, because
it introduces an oddly positioned scrolled window in the parental
controls page of Initial Setup, and if we ever reintroduce this
widgetry in Settings, it would suffer from the same problem.

Remove AdwPreferencesPage from MctUserControls, and replace it
with a vertical box. Add an AdwPreferencesPage in malcontent-controls
to compensate for that.
This commit is contained in:
Georges Basile Stavracas Neto 2022-07-16 09:54:37 -03:00
parent 9a35a09e24
commit fe785d357d
2 changed files with 17 additions and 7 deletions

View File

@ -4,7 +4,9 @@
<requires lib="gtk+" version="3.12"/>
<template class="MctUserControls" parent="AdwBin">
<child>
<object class="AdwPreferencesPage">
<object class="GtkBox">
<property name="spacing">24</property>
<property name="orientation">vertical</property>
<child>
<object class="AdwPreferencesGroup">
<child>

View File

@ -57,6 +57,10 @@
</accessibility>
</object>
</child>
<child>
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="MctUserControls" id="user_controls">
<!-- Content is set in code; this string is just a placeholder -->
@ -67,6 +71,10 @@
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</child>