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
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkEntryBuffer" id="timer_buffer">
<property name="text">0</property>
<property name="max_length">10</property>
</object>
<object class="GtkAdjustment" id="timer_value">
<property name="upper">120</property>
<property name="step_increment">1</property>
<property name="page_increment">5</property>
</object>
<template class="SleepTimer" parent="GtkPopover">
<property name="width_request">180</property>
<property name="child">
<object class="GtkBox">
<property name="width_request">270</property>
<property name="margin-start">10</property>
<property name="margin-end">10</property>
<property name="margin_top">15</property>
<property name="margin_bottom">20</property>
<property name="orientation">vertical</property>
<property name="spacing">10</property>
<child>
<object class="GtkGrid" id="timer_grid">
<child>
<object class="GtkScale" id="timer_scale">
<property name="width_request">205</property>
<property name="focusable">true</property>
<property name="tooltip_text" translatable="true">Timer duration</property>
<property name="halign">start</property>
<property name="margin-end">10</property>
<property name="adjustment">timer_value</property>
<property name="restrict-to-fill-level">true</property>
<property name="fill-level">120</property>
<property name="round-digits">5</property>
<property name="digits">0</property>
<property name="value-pos">right</property>
<accessibility>
<property name="label" translatable="true">Set the sleep timer duration in minutes</property>
</accessibility>
<layout>
<property name="column">0</property>
<property name="row">0</property>
</layout>
</object>
</child>
<child>
<object class="GtkLabel" id="min_label">
<property name="halign">end</property>
<property name="valign">center</property>
<property name="margin-start">6</property>
<property name="label" translatable="true">min</property>
<layout>
<property name="column">2</property>
<property name="row">0</property>
</layout>
</object>
</child>
<child>
<object class="GtkBox">
<property name="width_request">25</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="timer_label">
<property name="halign">end</property>
<property name="valign">center</property>
</object>
</child>
<layout>
<property name="column">1</property>
<property name="row">0</property>
</layout>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<child>
<object class="GtkLabel">
<property name="hexpand">true</property>
<property name="halign">start</property>
<property name="margin-end">10</property>
<property name="label" translatable="true">Stop after current chapter</property>
</object>
</child>
<child>
<object class="GtkSwitch" id="chapter_switch">
<property name="focusable">true</property>
<property name="halign">end</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSeparator"/>
</child>
<child>
<object class="GtkBox">
<child>
<object class="GtkLabel">
<property name="hexpand">true</property>
<property name="halign">start</property>
<property name="label" translatable="true">Enable system power control</property>
</object>
</child>
<child>
<object class="GtkSwitch" id="power_control_switch">
<property name="focusable">true</property>
<property name="halign">end</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="power_control_options">
<property name="sensitive">false</property>
<child>
<object class="GtkLabel">
<property name="hexpand">true</property>
<property name="tooltip_markup" translatable="true">Type of the action when the timer finishes.
"shutdown" will attempt to turn your system off (also known as power off)
"suspend" will attempt to suspend your system (also known as sleep).</property>
<property name="halign">start</property>
<property name="label" translatable="true">System power action to perform</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkCheckButton" id="system_suspend_radiob">
<property name="label" translatable="true">suspend</property>
<property name="active">true</property>
</object>
</child>
<child>
<object class="GtkCheckButton" id="system_shutdown_radiob">
<property name="label" translatable="true">shutdown</property>
<property name="group">system_suspend_radiob</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</template>
</interface>
|