gnome-control-center/panels/lock/cc-lock-panel.ui

237 lines
12 KiB
Text
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcLockPanel" parent="CcPanel">
<child type="content">
<object class="GtkScrolledWindow">
<property name="hscrollbar-policy">never</property>
<child>
<object class="AdwClamp">
<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="orientation">vertical</property>
<property name="hexpand">1</property>
<child>
<object class="GtkLabel" id="lock_description_label">
<property name="margin-bottom">12</property>
2020-05-08 00:19:33 +05:30
<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="selection-mode">none</property>
<style>
<class name="boxed-list" />
</style>
<!-- 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>
</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>