File: user-controls.ui

package info (click to toggle)
malcontent 0.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,756 kB
  • sloc: ansic: 7,414; python: 418; xml: 377; sh: 36; makefile: 14
file content (132 lines) | stat: -rw-r--r-- 6,376 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright © 2018, 2019, 2020 Endless, Inc. -->
<interface domain="malcontent">
  <requires lib="gtk+" version="3.12"/>
  <template class="MctUserControls" parent="AdwBin">
    <child>
      <object class="GtkBox">
        <property name="spacing">24</property>
        <property name="orientation">vertical</property>
        <child>
          <object class="AdwPreferencesGroup">
            <child>
              <object class="GtkLabel" id="description_label">
                <property name="wrap">True</property>
                <property name="xalign">0.0</property>
                <property name="yalign">0.0</property>
              </object>
            </child>
          </object>
        </child>

        <!-- Application Usage Restrictions -->
        <child>
          <object class="AdwPreferencesGroup">
            <property name="title" translatable="yes">Application Usage Restrictions</property>
            <child>
              <object class="AdwActionRow" id="restrict_web_browsers_row">
                <property name="title" translatable="yes">Restrict _Web Browsers</property>
                <property name="use_underline">True</property>
                <property name="activatable_widget">restrict_web_browsers_switch</property>
                <!-- Set dynamically from user-controls.c: -->
                <property name="subtitle">Prevents {username} from running web browsers. Limited web content may still be available in other applications.</property>
                <property name="subtitle_lines">0</property>
                <property name="focusable">False</property>
                <child>
                  <object class="GtkSwitch" id="restrict_web_browsers_switch">
                    <property name="halign">end</property>
                    <property name="valign">center</property>
                    <signal name="notify::active" handler="on_restrict_web_browsers_switch_active_changed_cb" object="MctUserControls" swapped="no" />
                    <style>
                      <class name="restricts" />
                    </style>
                  </object>
                </child>
              </object>
            </child>

            <child>
              <object class="AdwActionRow" id="restrict_applications_row">
                <property name="accessible-role">button</property>
                <property name="activatable">True</property>
                <property name="title" translatable="yes">_Restrict Applications</property>
                <property name="use_underline">True</property>
                <!-- Set dynamically from user-controls.c: -->
                <property name="subtitle">Prevents specified applications from being used by {username}.</property>
                <property name="subtitle_lines">0</property>
                <property name="action-name">permissions.restrict-applications</property>
                <child>
                  <object class="GtkImage">
                    <property name="icon-name">go-next-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
            <style>
              <class name="content"/>
            </style>
          </object>
        </child>

        <!-- Software Installation Restrictions -->
        <child>
          <object class="AdwPreferencesGroup">
            <property name="title" translatable="yes">Software Installation Restrictions</property>
            <child>
              <object class="AdwActionRow" id="restrict_software_installation_row">
                <property name="visible" bind-source="restrict_software_installation_switch" bind-property="visible" bind-flags="default|sync-create" />
                <property name="title" translatable="yes">Restrict Application _Installation</property>
                <property name="use_underline">True</property>
                <property name="activatable_widget">restrict_software_installation_switch</property>
                <!-- Set dynamically from user-controls.c: -->
                <property name="subtitle">Prevents {username} from installing applications.</property>
                <property name="subtitle_lines">0</property>
                <property name="focusable">False</property>
                <child>
                  <object class="GtkSwitch" id="restrict_software_installation_switch">
                    <property name="halign">end</property>
                    <property name="valign">center</property>
                    <signal name="notify::active" handler="on_restrict_installation_switch_active_changed_cb" object="MctUserControls" swapped="no" />
                    <style>
                      <class name="restricts" />
                    </style>
                  </object>
                </child>
              </object>
            </child>

            <child>
              <object class="AdwActionRow">
                <property name="title" translatable="yes">Application _Suitability</property>
                <property name="use_underline">True</property>
                <property name="activatable_widget">oars_button</property>
                <property name="subtitle" translatable="yes">Restricts the browsing or installation of applications unsuitable for this age or younger.</property>
                <property name="subtitle_lines">0</property>
                <property name="focusable">False</property>
                <child>
                  <object class="GtkMenuButton" id="oars_button">
                    <property name="halign">end</property>
                    <property name="valign">center</property>
                    <property name="popover">oars_popover</property>
                    <property name="always-show-arrow">True</property>
                  </object>
                </child>
              </object>
            </child>
            <style>
              <class name="content"/>
            </style>
          </object>
        </child>
      </object>
    </child>
  </template>

  <object class="GtkPopoverMenu" id="oars_popover" />

  <menu id="age_menu" />

  <object class="MctRestrictApplicationsDialog" id="restrict_applications_dialog">
    <signal name="closed" handler="on_restrict_applications_dialog_closed_cb" />
  </object>
</interface>