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:
parent
9a35a09e24
commit
fe785d357d
|
@ -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>
|
||||
|
|
|
@ -58,12 +58,20 @@
|
|||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="MctUserControls" id="user_controls">
|
||||
<!-- Content is set in code; this string is just a placeholder -->
|
||||
<property name="description">It’s recommended that restrictions are set as part of an ongoing conversation with $name. Read guidance on what to consider.</property>
|
||||
<property name="height-request">270</property>
|
||||
<property name="dbus-connection">dbus_connection</property>
|
||||
<property name="vexpand">True</property>
|
||||
<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 -->
|
||||
<property name="description">It’s recommended that restrictions are set as part of an ongoing conversation with $name. Read guidance on what to consider.</property>
|
||||
<property name="height-request">270</property>
|
||||
<property name="dbus-connection">dbus_connection</property>
|
||||
<property name="vexpand">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
|
Loading…
Reference in New Issue