diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2020-10-19 13:59:01 +0100 |
---|---|---|
committer | Robert Ancell <robert.ancell@gmail.com> | 2021-02-01 03:46:14 +0000 |
commit | 2d41210b2f257d30456d175f88573646b7b7163c (patch) | |
tree | 503f5ceefdb4df1c8791927fe237315c618ed02b | |
parent | c6bde9770d623b8d0f7d0937a4d4e86436e364b1 (diff) | |
download | gnome-control-center-2d41210b2f257d30456d175f88573646b7b7163c.tar.gz |
user-accounts: Add a description label for the Parental Controls row
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Helps: https://gitlab.freedesktop.org/pwithnall/malcontent/-/issues/26
-rw-r--r-- | panels/user-accounts/cc-user-panel.ui | 68 |
1 files changed, 56 insertions, 12 deletions
diff --git a/panels/user-accounts/cc-user-panel.ui b/panels/user-accounts/cc-user-panel.ui index 32a5c8185..3725d08ef 100644 --- a/panels/user-accounts/cc-user-panel.ui +++ b/panels/user-accounts/cc-user-panel.ui @@ -275,9 +275,18 @@ </object> </child> <child> - <object class="GtkSwitch" id="account_type_switch"> + <object class="GtkBox"> <property name="visible">True</property> - <signal name="notify::active" handler="account_type_changed" object="CcUserPanel" swapped="yes"/> + <property name="expand">True</property> + <child> + <object class="GtkSwitch" id="account_type_switch"> + <property name="visible">True</property> + <signal name="notify::active" handler="account_type_changed" object="CcUserPanel" swapped="yes"/> + </object> + <packing> + <property name="pack-type">end</property> + </packing> + </child> </object> <packing> <property name="left_attach">1</property> @@ -311,39 +320,74 @@ <object class="GtkListBoxRow" id="parental_controls_row"> <property name="visible">False</property> <child> - <object class="GtkBox"> + <object class="GtkGrid"> <property name="visible">True</property> + <property name="can_focus">False</property> <property name="border-width">10</property> - <property name="spacing">10</property> + <property name="column-spacing">10</property> <child> <object class="GtkLabel"> <property name="visible">True</property> + <property name="halign">GTK_ALIGN_START</property> + <property name="hexpand">True</property> <property name="label" translatable="yes">_Parental Controls</property> <property name="use_underline">True</property> <property name="mnemonic_widget">parental_controls_button_label</property> </object> </child> <child> - <object class="GtkImage" id="parental_control_go_next"> + <object class="GtkBox"> + <property name="orientation">horizontal</property> <property name="visible">True</property> - <property name="icon-name">go-next-symbolic</property> - <style> - <class name="dim-label"/> - </style> + <property name="spacing">10</property> + <child> + <object class="GtkImage" id="parental_control_go_next"> + <property name="visible">True</property> + <property name="icon-name">go-next-symbolic</property> + <style> + <class name="dim-label"/> + </style> + </object> + <packing> + <property name="pack_type">end</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="parental_controls_button_label"> + <property name="visible">True</property> + <property name="valign">0.5</property> + <style> + <class name="dim-label"/> + </style> + </object> + <packing> + <property name="pack_type">end</property> + </packing> + </child> </object> <packing> - <property name="pack_type">end</property> + <property name="height">2</property> + <property name="left_attach">1</property> </packing> </child> <child> - <object class="GtkLabel" id="parental_controls_button_label"> + <object class="GtkLabel"> + <property name="expand">True</property> <property name="visible">True</property> + <property name="wrap">True</property> + <property name="xalign">0</property> + <property name="max-width-chars">48</property> + <property name="label" translatable="yes">Open the Parental Controls application.</property> <style> <class name="dim-label"/> </style> + <attributes> + <attribute name="scale" value="0.9"/> + </attributes> </object> <packing> - <property name="pack_type">end</property> + <property name="left_attach">0</property> + <property name="top_attach">1</property> </packing> </child> </object> |