gnome-control-center/panels/lock/cc-lock-panel.ui
2022-01-24 21:33:47 +00:00

205 lines
9.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcLockPanel" parent="CcPanel">
<child type="content">
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup">
<property name="description" translatable="yes">Automatically locking the screen prevents others from accessing the computer while you're away.</property>
<!-- Blank Screen Delay row -->
<child>
<object class="AdwActionRow">
<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="subtitle-lines">2</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="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="AdwActionRow">
<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="halign">end</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<!-- Automatic Screen Lock Delay row -->
<child>
<object class="AdwActionRow">
<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="subtitle-lines">2</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="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="AdwActionRow">
<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="halign">end</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<!-- USB protection row -->
<child>
<object class="AdwActionRow" 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="subtitle-lines">2</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="halign">end</property>
<property name="valign">center</property>
</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>