anastasis_gtk_auth_add_question.ui (12613B)
1 <?xml version='1.0' encoding='UTF-8'?> 2 <!-- Created with Cambalache 0.94.1 --> 3 <!-- 4 Copyright (C) 2019-2021 Anastasis SARL 5 6 This file is part of anastasis-gtk. 7 8 anastasis-gtk is free software: you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation, either version 3 of the License, or 11 (at your option) any later version. 12 13 anastasis-gtk is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with anastasis-gtk. If not, see <http://www.gnu.org/licenses/>. 20 21 Author: Christian Grothoff--> 22 <interface> 23 <!-- interface-name anastasis_gtk_auth_add_question.ui --> 24 <requires lib="gtk" version="4.0"/> 25 <object class="GtkDialog" id="anastasis_gtk_b_question_dialog"> 26 <property name="default-widget">anastasis_gtk_b_question_dialog_btn_ok</property> 27 <signal name="response" handler="anastasis_gtk_b_question_dialog_response_cb"/> 28 <child internal-child="content_area"> 29 <object class="GtkBox"> 30 <property name="orientation">vertical</property> 31 <property name="spacing">2</property> 32 <child> 33 <object class="GtkLabel" id="instruction_label"> 34 <property name="label" translatable="yes">For security question authentication, you need to provide a question and its answer. 35 When recovering your secret, you will be shown the question and you will need to type 36 the answer exactly as you typed it here.</property> 37 <property name="margin-bottom">20</property> 38 <property name="margin-top">20</property> 39 <attributes> 40 <attribute name="weight" value="medium"/> 41 </attributes> 42 </object> 43 </child> 44 <child> 45 <object class="GtkBox" id="question_vbox"> 46 <property name="margin-bottom">15</property> 47 <property name="margin-top">15</property> 48 <property name="orientation">vertical</property> 49 <child> 50 <object class="GtkSeparator"/> 51 </child> 52 <child> 53 <object class="GtkBox"> 54 <property name="margin-bottom">15</property> 55 <property name="margin-end">20</property> 56 <property name="margin-start">20</property> 57 <property name="margin-top">15</property> 58 <property name="orientation">vertical</property> 59 <child> 60 <object class="GtkBox"> 61 <property name="margin-bottom">5</property> 62 <property name="margin-top">5</property> 63 <property name="orientation">vertical</property> 64 <child> 65 <object class="GtkLabel"> 66 <property name="halign">start</property> 67 <property name="label" translatable="yes">Security _question</property> 68 <property name="margin-bottom">5</property> 69 <property name="margin-top">5</property> 70 <property name="use-underline">1</property> 71 </object> 72 </child> 73 <child> 74 <object class="GtkEntry" id="anastasis_gtk_b_question_dialog_question_entry"> 75 <property name="activates-default">1</property> 76 <property name="focusable">1</property> 77 <property name="hexpand">1</property> 78 <property name="margin-bottom">5</property> 79 <property name="margin-top">5</property> 80 <property name="primary-icon-name">dialog-question</property> 81 <property name="width-chars">60</property> 82 <signal name="changed" handler="anastasis_gtk_b_question_dialog_question_entry_changed_cb"/> 83 </object> 84 </child> 85 </object> 86 </child> 87 <child> 88 <object class="GtkBox" id="private_hbox"> 89 <property name="margin-end">10</property> 90 <property name="margin-start">10</property> 91 <child> 92 <object class="GtkLabel" id="privacy_label"> 93 <property name="halign">center</property> 94 <property name="label" translatable="yes">This stays private</property> 95 <property name="margin-end">10</property> 96 <property name="margin-start">10</property> 97 </object> 98 </child> 99 <child> 100 <object class="GtkPicture" id="blindfold_image"> 101 <property name="can-shrink">0</property> 102 <property name="content-fit">scale-down</property> 103 <property name="file">noun_blindfold_3574196.svg</property> 104 <property name="halign">center</property> 105 <property name="height-request">24</property> 106 <property name="margin-end">1</property> 107 <property name="margin-start">1</property> 108 <property name="width-request">24</property> 109 </object> 110 </child> 111 </object> 112 </child> 113 </object> 114 </child> 115 <child> 116 <object class="GtkSeparator"/> 117 </child> 118 </object> 119 </child> 120 <child> 121 <object class="GtkBox" id="answer_vbox"> 122 <property name="margin-bottom">65</property> 123 <property name="margin-end">20</property> 124 <property name="margin-start">20</property> 125 <property name="margin-top">15</property> 126 <property name="orientation">vertical</property> 127 <child> 128 <object class="GtkBox"> 129 <property name="margin-bottom">5</property> 130 <property name="margin-top">5</property> 131 <property name="orientation">vertical</property> 132 <child> 133 <object class="GtkLabel"> 134 <property name="halign">start</property> 135 <property name="label" translatable="yes">_Answer</property> 136 <property name="margin-bottom">5</property> 137 <property name="margin-top">5</property> 138 <property name="use-underline">1</property> 139 </object> 140 </child> 141 <child> 142 <object class="GtkEntry" id="anastasis_gtk_b_question_dialog_answer_entry"> 143 <property name="activates-default">1</property> 144 <property name="focusable">1</property> 145 <property name="hexpand">1</property> 146 <property name="margin-bottom">5</property> 147 <property name="margin-top">5</property> 148 <property name="primary-icon-name">dialog-password</property> 149 <property name="width-chars">60</property> 150 <signal name="changed" handler="anastasis_gtk_b_question_dialog_answer_entry_changed_cb"/> 151 </object> 152 </child> 153 <child> 154 <object class="GtkLabel" id="case_sensitivity_label"> 155 <property name="label" translatable="yes">Note that the answer is case-sensitive and must be entered 156 in exactly the same way (punctuation, spaces) during recovery.</property> 157 <attributes> 158 <attribute name="scale" value="0.80000000000000004"/> 159 </attributes> 160 </object> 161 </child> 162 </object> 163 </child> 164 <child> 165 <object class="GtkBox" id="private_hbox1"> 166 <property name="margin-end">10</property> 167 <property name="margin-start">10</property> 168 <child> 169 <object class="GtkLabel" id="privacy_label1"> 170 <property name="halign">center</property> 171 <property name="label" translatable="yes">This stays private</property> 172 <property name="margin-end">10</property> 173 <property name="margin-start">10</property> 174 </object> 175 </child> 176 <child> 177 <object class="GtkPicture" id="blindfold_image1"> 178 <property name="can-shrink">0</property> 179 <property name="content-fit">scale-down</property> 180 <property name="file">noun_blindfold_3574196.svg</property> 181 <property name="halign">center</property> 182 <property name="height-request">24</property> 183 <property name="margin-end">1</property> 184 <property name="margin-start">1</property> 185 <property name="width-request">24</property> 186 </object> 187 </child> 188 </object> 189 </child> 190 </object> 191 </child> 192 </object> 193 </child> 194 <child type="titlebar"> 195 <object class="GtkLabel"> 196 <property name="label" translatable="yes">Configure security question</property> 197 </object> 198 </child> 199 <child internal-child="action_area"> 200 <object class="GtkBox"> 201 <property name="can-focus">0</property> 202 <property name="halign">end</property> 203 <property name="homogeneous">1</property> 204 <property name="spacing">6</property> 205 <child> 206 <object class="GtkButton" id="anastasis_gtk_b_question_dialog_btn_cancel"> 207 <property name="child"> 208 <object class="GtkBox"> 209 <property name="halign">center</property> 210 <property name="spacing">2</property> 211 <child> 212 <object class="GtkImage"> 213 <property name="icon-name">gtk-cancel</property> 214 </object> 215 </child> 216 <child> 217 <object class="GtkLabel"> 218 <property name="label" translatable="yes">_Cancel</property> 219 <property name="mnemonic-widget">anastasis_gtk_b_question_dialog_btn_cancel</property> 220 <property name="use-underline">1</property> 221 </object> 222 </child> 223 </object> 224 </property> 225 <property name="margin-end">5</property> 226 <property name="margin-start">5</property> 227 </object> 228 </child> 229 <child> 230 <object class="GtkButton" id="anastasis_gtk_b_question_dialog_btn_ok"> 231 <property name="child"> 232 <object class="GtkBox"> 233 <property name="halign">center</property> 234 <property name="spacing">2</property> 235 <child> 236 <object class="GtkImage"> 237 <property name="icon-name">gtk-ok</property> 238 </object> 239 </child> 240 <child> 241 <object class="GtkLabel"> 242 <property name="label" translatable="yes">_OK</property> 243 <property name="mnemonic-widget">anastasis_gtk_b_question_dialog_btn_ok</property> 244 <property name="use-underline">1</property> 245 </object> 246 </child> 247 </object> 248 </property> 249 <property name="margin-end">5</property> 250 <property name="margin-start">5</property> 251 <property name="sensitive">0</property> 252 </object> 253 </child> 254 </object> 255 </child> 256 <action-widgets> 257 <action-widget response="-6">anastasis_gtk_b_question_dialog_btn_cancel</action-widget> 258 <action-widget response="-5">anastasis_gtk_b_question_dialog_btn_ok</action-widget> 259 </action-widgets> 260 <action-widgets> 261 <action-widget response="-6">anastasis_gtk_b_question_dialog_btn_cancel</action-widget> 262 <action-widget response="-5">anastasis_gtk_b_question_dialog_btn_ok</action-widget> 263 </action-widgets> 264 </object> 265 </interface>