2019-12-19 14:41:17 +01:00
<?xml version="1.0" encoding="UTF-8"?>
2020-01-10 18:03:20 +01:00
<!-- Copyright © 2019, 2020 Endless Mobile, Inc. -->
2019-12-19 14:41:17 +01:00
<interface>
<requires lib="gtk+" version="3.12"/>
2021-02-08 12:27:59 +01:00
<object class="HdyApplicationWindow" id="main_window">
2020-11-03 17:23:48 +01:00
<property name="default-width">540</property>
<property name="default-height">580</property>
2021-02-08 12:27:59 +01:00
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
2020-04-06 13:38:11 +02:00
<child>
2021-02-08 12:27:59 +01:00
<object class="HdyHeaderBar" id="header">
<property name="show-close-button">True</property>
<!-- Translators: This is the title of the main window -->
<property name="title" translatable="yes">Parental Controls</property>
<child>
<object class="GtkMenuButton" id="primary_menu">
<property name="direction">none</property>
<property name="use-popover">True</property>
<property name="menu-model">primary-menu</property>
<accelerator key="F10" signal="activate"/>
<style>
<class name="image-button"/>
</style>
</object>
<packing>
<property name="pack-type">end</property>
</packing>
</child>
2020-04-06 13:38:11 +02:00
</object>
</child>
2020-01-10 18:03:20 +01:00
<child>
2021-02-08 12:27:59 +01:00
<object class="GtkStack" id="main_stack">
2020-01-10 18:03:20 +01:00
<child>
2021-02-08 12:27:59 +01:00
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="MctUserSelector" id="user_selector">
<property name="user-manager">user_manager</property>
<property name="show-administrators">False</property>
<accessibility>
2022-07-08 16:11:38 +02:00
<relation name="controls">user_controls</relation>
2021-02-08 12:27:59 +01:00
</accessibility>
</object>
<packing>
<property name="fill">False</property>
<property name="expand">False</property>
</packing>
</child>
<child>
2021-02-08 14:27:49 +01:00
<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>
2021-02-08 12:27:59 +01:00
</object>
<packing>
<property name="expand">True</property>
</packing>
</child>
2020-01-10 18:03:20 +01:00
</object>
<packing>
2021-02-08 12:27:59 +01:00
<property name="name">controls</property>
2020-01-10 18:03:20 +01:00
</packing>
</child>
2021-02-08 12:27:59 +01:00
2020-01-10 18:03:20 +01:00
<child>
2021-02-08 23:31:25 +01:00
<object class="HdyStatusPage">
<property name="title" translatable="yes">Permission Required</property>
<property name="description" translatable="yes">Permission is required to view and change user parental controls settings.</property>
<property name="icon-name">org.freedesktop.MalcontentControl</property>
<child>
<object class="GtkLockButton" id="lock_button">
<property name="halign">center</property>
<property name="can-default">True</property>
<property name="has-default">True</property>
2020-01-10 18:03:20 +01:00
</object>
</child>
</object>
<packing>
2021-02-08 12:27:59 +01:00
<property name="name">unlock</property>
2020-01-10 18:03:20 +01:00
</packing>
</child>
2021-02-08 12:27:59 +01:00
<child>
2021-02-08 23:31:25 +01:00
<object class="HdyStatusPage">
<property name="icon-name">system-users-symbolic</property>
<property name="title" translatable="yes">No Standard User Accounts</property>
<property name="description" translatable="yes">Parental controls can only be applied to standard user
2021-02-08 12:27:59 +01:00
accounts. These can be created in the user settings.</property>
2021-02-08 23:31:25 +01:00
<child>
<object class="GtkButton" id="user_accounts_panel_button">
<property name="label" translatable="yes">_User Settings</property>
<property name="halign">center</property>
<property name="can-default">True</property>
<property name="has-default">True</property>
<property name="use-underline">True</property>
<style>
<class name="suggested-action"/>
</style>
2020-01-28 15:30:26 +01:00
</object>
</child>
</object>
2021-02-08 12:27:59 +01:00
<packing>
<property name="name">no-other-users</property>
</packing>
2020-01-28 15:30:26 +01:00
</child>
2021-02-08 12:27:59 +01:00
<child>
2020-01-28 16:07:18 +01:00
<object class="GtkBox">
<property name="orientation">vertical</property>
2021-02-08 12:27:59 +01:00
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child type="center">
2020-01-28 16:07:18 +01:00
<object class="GtkLabel">
2021-02-08 12:27:59 +01:00
<property name="label" translatable="yes">Loading…</property>
2020-01-28 16:07:18 +01:00
<attributes>
<attribute name="scale" value="1.4"/>
</attributes>
</object>
</child>
2020-01-10 18:03:20 +01:00
</object>
2021-02-08 12:27:59 +01:00
<packing>
<property name="name">loading</property>
</packing>
2020-01-10 18:03:20 +01:00
</child>
2021-02-08 12:27:59 +01:00
<child>
2021-02-08 23:31:25 +01:00
<object class="HdyStatusPage" id="error_page">
<property name="icon-name">dialog-error-symbolic</property>
2020-01-10 18:03:20 +01:00
</object>
2021-02-08 12:27:59 +01:00
<packing>
<property name="name">error</property>
</packing>
2020-01-10 18:03:20 +01:00
</child>
</object>
</child>
2019-12-19 14:41:17 +01:00
</object>
</child>
</object>
2020-04-06 13:38:11 +02:00
<menu id="primary-menu">
<section>
<item>
<attribute name="action">app.help</attribute>
<attribute name="label" translatable="yes">_Help</attribute>
</item>
<item>
<attribute name="action">app.about</attribute>
<attribute name="label" translatable="yes">_About Parental Controls</attribute>
</item>
</section>
</menu>
2019-12-19 14:41:17 +01:00
</interface>