summaryrefslogtreecommitdiffstats
path: root/panels/lock/cc-lock-panel.ui
blob: f32dde1115cd5524c826973ad2246999823a2ea6 (plain)
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.1 -->
<interface>
  <template class="CcLockPanel" parent="CcPanel">
    <property name="visible">True</property>
    <child>
      <object class="GtkScrolledWindow">
        <property name="visible">1</property>
        <property name="hscrollbar-policy">never</property>
        <child>
          <object class="HdyClamp">
            <property name="visible">True</property>
            <property name="margin_top">32</property>
            <property name="margin_bottom">32</property>
            <property name="margin_start">12</property>
            <property name="margin_end">12</property>

            <child>
              <object class="GtkBox">
                <property name="visible">1</property>
                <property name="orientation">vertical</property>
                <property name="hexpand">1</property>
                <child>
                  <object class="GtkLabel" id="lock_description_label">
                    <property name="visible">1</property>
                    <property name="margin-bottom">12</property>
                    <property name="label" translatable="yes">Automatically locking the screen prevents others from accessing the computer while you're away.</property>
                    <property name="wrap">1</property>
                    <property name="max-width-chars">50</property>
                    <property name="xalign">0</property>
                  </object>
                </child>

                <child>
                  <object class="GtkListBox" id="lock_list_box">
                    <property name="visible">1</property>
                    <property name="can-focus">1</property>
                    <property name="selection-mode">none</property>

                    <!-- Blank Screen Delay row -->
                    <child>
                      <object class="HdyActionRow">
                        <property name="visible">true</property>
                        <property name="title" translatable="yes">Blank Screen Delay</property>
                        <property name="subtitle" translatable="yes">Period of inactivity after which the screen will go blank.</property>
                        <property name="activatable-widget">blank_screen_combo</property>
                        <property name="sensitive" bind-source="blank_screen_combo" bind-property="sensitive"/>
                        <property name="use-underline">true</property>
                        <child>
                          <object class="GtkComboBoxText" id="blank_screen_combo">
                            <property name="visible">1</property>
                            <property name="valign">center</property>
                            <property name="entry_text_column">0</property>
                            <property name="model">blank_screen_model</property>
                            <signal name="changed" handler="on_blank_screen_delay_changed_cb" object="CcLockPanel" swapped="no" />
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Automatic Screen Lock row -->
                    <child>
                      <object class="HdyActionRow">
                        <property name="visible">true</property>
                        <property name="title" translatable="yes">Automatic Screen _Lock</property>
                        <property name="activatable-widget">automatic_screen_lock_switch</property>
                        <property name="use-underline">true</property>
                        <child>
                          <object class="GtkSwitch" id="automatic_screen_lock_switch">
                            <property name="visible">1</property>
                            <property name="halign">end</property>
                            <property name="valign">center</property>
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Automatic Screen Lock Delay row -->
                    <child>
                      <object class="HdyActionRow">
                        <property name="visible">true</property>
                        <property name="title" translatable="yes">Automatic _Screen Lock Delay</property>
                        <property name="subtitle" translatable="yes">Period after the screen blanks when the screen is automatically locked.</property>
                        <property name="activatable-widget">lock_after_combo</property>
                        <property name="sensitive" bind-source="lock_after_combo" bind-property="sensitive"/>
                        <property name="use-underline">true</property>
                        <child>
                          <object class="GtkComboBoxText" id="lock_after_combo">
                            <property name="visible">1</property>
                            <property name="valign">center</property>
                            <property name="entry_text_column">0</property>
                            <property name="model">lock_after_model</property>
                            <signal name="changed" handler="on_lock_combo_changed_cb" object="CcLockPanel" swapped="no" />
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Show Notifications row -->
                    <child>
                      <object class="HdyActionRow">
                        <property name="visible">true</property>
                        <property name="title" translatable="yes">Show _Notifications on Lock Screen</property>
                        <property name="activatable-widget">show_notifications_switch</property>
                        <property name="use-underline">true</property>
                        <child>
                          <object class="GtkSwitch" id="show_notifications_switch">
                            <property name="visible">1</property>
                            <property name="halign">end</property>
                            <property name="valign">center</property>
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- USB protection row -->
                    <child>
                      <object class="HdyActionRow" id="usb_protection_row">
                        <property name="visible">false</property>
                        <property name="title" translatable="yes">Forbid new _USB devices</property>
                        <property name="subtitle" translatable="yes">Prevent new USB devices from interacting with the system when the screen is locked.</property>
                        <property name="activatable-widget">usb_protection_switch</property>
                        <property name="use-underline">true</property>
                        <child>
                          <object class="GtkSwitch" id="usb_protection_switch">
                            <property name="visible">true</property>
                            <property name="halign">end</property>
                            <property name="valign">center</property>
                          </object>
                        </child>
                      </object>
                    </child>

                    <style>
                      <class name="view"/>
                      <class name="frame"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>

          </object>
        </child>
      </object>
    </child>
  </template>

  <object class="GtkSizeGroup">
    <property name="mode">horizontal</property>
    <widgets>
      <widget name="blank_screen_combo" />
      <widget name="lock_after_combo" />
    </widgets>
  </object>

  <object class="GtkListStore" id="lock_after_model">
    <columns>
      <!-- column-name name -->
      <column type="gchararray"/>
      <!-- column-name value -->
      <column type="gint"/>
    </columns>
    <data>
      <row>
        <col id="0" translatable="yes" context="lock_screen" comments="Translators: Option for &quot;Lock screen after blank for&quot; in &quot;Screen Lock&quot; dialog.">Screen Turns Off</col>
        <col id="1">0</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="lock_screen" comments="Translators: Option for &quot;Lock screen after blank for&quot; in &quot;Screen Lock&quot; dialog.">30 seconds</col>
        <col id="1">30</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="lock_screen" comments="Translators: Option for &quot;Lock screen after blank for&quot; in &quot;Screen Lock&quot; dialog.">1 minute</col>
        <col id="1">60</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="lock_screen" comments="Translators: Option for &quot;Lock screen after blank for&quot; in &quot;Screen Lock&quot; dialog.">2 minutes</col>
        <col id="1">120</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="lock_screen" comments="Translators: Option for &quot;Lock screen after blank for&quot; in &quot;Screen Lock&quot; dialog.">3 minutes</col>
        <col id="1">180</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="lock_screen" comments="Translators: Option for &quot;Lock screen after blank for&quot; in &quot;Screen Lock&quot; dialog.">5 minutes</col>
        <col id="1">300</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="lock_screen" comments="Translators: Option for &quot;Lock screen after blank for&quot; in &quot;Screen Lock&quot; dialog.">30 minutes</col>
        <col id="1">1800</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="lock_screen" comments="Translators: Option for &quot;Lock screen after blank for&quot; in &quot;Screen Lock&quot; dialog.">1 hour</col>
        <col id="1">3600</col>
      </row>
    </data>
  </object>

  <object class="GtkListStore" id="blank_screen_model">
    <columns>
      <!-- column-name name -->
      <column type="gchararray"/>
      <!-- column-name value -->
      <column type="gint"/>
    </columns>
    <data>
      <row>
        <col id="0" translatable="yes" context="blank_screen" comments="Translators: Option for &quot;Blank screen&quot; in &quot;Power&quot; panel.">1 minute</col>
        <col id="1">60</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="blank_screen" comments="Translators: Option for &quot;Blank screen&quot; in &quot;Power&quot; panel.">2 minutes</col>
        <col id="1">120</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="blank_screen" comments="Translators: Option for &quot;Blank screen&quot; in &quot;Power&quot; panel.">3 minutes</col>
        <col id="1">180</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="blank_screen" comments="Translators: Option for &quot;Blank screen&quot; in &quot;Power&quot; panel.">4 minutes</col>
        <col id="1">240</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="blank_screen" comments="Translators: Option for &quot;Blank screen&quot; in &quot;Power&quot; panel.">5 minutes</col>
        <col id="1">300</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="blank_screen" comments="Translators: Option for &quot;Blank screen&quot; in &quot;Power&quot; panel.">8 minutes</col>
        <col id="1">480</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="blank_screen" comments="Translators: Option for &quot;Blank screen&quot; in &quot;Power&quot; panel.">10 minutes</col>
        <col id="1">600</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="blank_screen" comments="Translators: Option for &quot;Blank screen&quot; in &quot;Power&quot; panel.">12 minutes</col>
        <col id="1">720</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="blank_screen" comments="Translators: Option for &quot;Blank screen&quot; in &quot;Power&quot; panel.">15 minutes</col>
        <col id="1">900</col>
      </row>
      <row>
        <col id="0" translatable="yes" context="blank_screen" comments="Translators: Option for &quot;Blank screen&quot; in &quot;Power&quot; panel.">Never</col>
        <col id="1">0</col>
      </row>
    </data>
  </object>
</interface>