anastasis_gtk_challenge_code.ui (8243B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 Copyright (C) 2019-2021 Anastasis SARL 4 5 This file is part of anastasis-gtk. 6 7 anastasis-gtk is free software: you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation, either version 3 of the License, or 10 (at your option) any later version. 11 12 anastasis-gtk is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with anastasis-gtk. If not, see <http://www.gnu.org/licenses/>. 19 20 Author: Christian Grothoff--> 21 <interface> 22 <requires lib="gtk" version="4.0"/> 23 <object class="GtkDialog" id="anastasis_gtk_c_code_dialog"> 24 <signal name="response" handler="anastasis_gtk_c_code_dialog_response_cb" swapped="no"/> 25 <child internal-child="content_area"> 26 <object class="GtkBox"> 27 <property name="orientation">vertical</property> 28 <property name="spacing">2</property> 29 <child> 30 <object class="GtkLabel" id="anastasis_gtk_c_code_error_label"> 31 <property name="visible">0</property> 32 <property name="label">ERROR MESSAGE (SET DYNAMICALLY BY PROGRAM)</property> 33 <attributes> 34 <attribute name="weight" value="bold"></attribute> 35 <attribute name="foreground" value="#a5a51d1d2d2d"></attribute> 36 </attributes> 37 <property name="margin-top">5</property> 38 <property name="margin-bottom">5</property> 39 </object> 40 </child> 41 <child> 42 <object class="GtkBox" id="anastasis_gtk_c_challenge_box"> 43 <child> 44 <object class="GtkLabel" id="anastasis_gtk_c_challenge_pre_label"> 45 <property name="halign">center</property> 46 <property name="label" translatable="1">Challenge:</property> 47 <property name="margin-start">5</property> 48 <property name="margin-end">5</property> 49 </object> 50 </child> 51 <child> 52 <object class="GtkLabel" id="anastasis_gtk_c_challenge_label"> 53 <property name="label">SET DYNAMICALLY BY PROGRAM</property> 54 <attributes> 55 <attribute name="style" value="italic"></attribute> 56 </attributes> 57 </object> 58 </child> 59 </object> 60 </child> 61 <child> 62 <object class="GtkBox"> 63 <property name="orientation">vertical</property> 64 <child> 65 <object class="GtkSeparator"/> 66 </child> 67 <child> 68 <object class="GtkBox"> 69 <property name="margin-top">5</property> 70 <property name="margin-bottom">5</property> 71 <child> 72 <object class="GtkLabel"> 73 <property name="label" translatable="1">Code sent to:</property> 74 <property name="margin-start">5</property> 75 <property name="margin-end">5</property> 76 </object> 77 </child> 78 <child> 79 <object class="GtkLabel" id="challenge_instructions_label"> 80 <property name="label">SET DYNAMICALLY BY PROGRAM</property> 81 <attributes> 82 <attribute name="style" value="italic"></attribute> 83 </attributes> 84 </object> 85 </child> 86 </object> 87 </child> 88 <child> 89 <object class="GtkSeparator"/> 90 </child> 91 </object> 92 </child> 93 <child> 94 <object class="GtkBox"> 95 <property name="margin-top">5</property> 96 <property name="margin-bottom">5</property> 97 <child> 98 <object class="GtkLabel"> 99 <property name="label" translatable="1">Enter the code:</property> 100 <property name="margin-start">5</property> 101 <property name="margin-end">5</property> 102 </object> 103 </child> 104 <child> 105 <object class="GtkEntry" id="anastasis_gtk_c_code_entry"> 106 <property name="focusable">1</property> 107 <property name="hexpand">1</property> 108 <property name="width-chars">24</property> 109 <property name="text">A-</property> 110 <property name="primary-icon-name">dialog-password</property> 111 <property name="placeholder-text" translatable="0">A-</property> 112 <signal name="changed" handler="anastasis_gtk_c_code_dialog_answer_entry_changed_cb" swapped="no"/> 113 <signal name="insert-text" handler="anastasis_gtk_pin_autocomplete_insert_text" swapped="no"/> 114 <property name="margin-start">5</property> 115 <property name="margin-end">5</property> 116 </object> 117 </child> 118 </object> 119 </child> 120 </object> 121 </child> 122 <action-widgets> 123 <action-widget response="-6">anastasis_gtk_c_code_dialog_btn_cancel</action-widget> 124 <action-widget response="-5">anastasis_gtk_c_code_dialog_btn_ok</action-widget> 125 </action-widgets> 126 <child type="titlebar"> 127 <object class="GtkLabel" id="anastasis_gtk_c_code_dialog_label"> 128 <property name="label" translatable="1">Security token challenge</property> 129 </object> 130 </child> 131 <action-widgets> 132 <action-widget response="-6">anastasis_gtk_c_code_dialog_btn_cancel</action-widget> 133 <action-widget response="-5">anastasis_gtk_c_code_dialog_btn_ok</action-widget> 134 </action-widgets> 135 <child internal-child="action_area"> 136 <object class="GtkBox"> 137 <property name="can-focus">0</property> 138 <property name="homogeneous">1</property> 139 <property name="spacing">6</property> 140 <property name="halign">end</property> 141 <child> 142 <object class="GtkButton" id="anastasis_gtk_c_code_dialog_btn_cancel"> 143 <property name="focusable">1</property> 144 <property name="receives-default">1</property> 145 <property name="child"> 146 <object class="GtkBox"> 147 <property name="spacing">2</property> 148 <property name="halign">center</property> 149 <child> 150 <object class="GtkImage"> 151 <property name="icon-name">gtk-cancel</property> 152 </object> 153 </child> 154 <child> 155 <object class="GtkLabel"> 156 <property name="label" translatable="1">_Cancel</property> 157 <property name="use-underline">1</property> 158 <property name="mnemonic-widget">anastasis_gtk_c_code_dialog_btn_cancel</property> 159 </object> 160 </child> 161 </object> 162 </property> 163 </object> 164 </child> 165 <child> 166 <object class="GtkButton" id="anastasis_gtk_c_code_dialog_btn_ok"> 167 <property name="sensitive">0</property> 168 <property name="receives-default">1</property> 169 <property name="child"> 170 <object class="GtkBox"> 171 <property name="spacing">2</property> 172 <property name="halign">center</property> 173 <child> 174 <object class="GtkImage"> 175 <property name="icon-name">gtk-ok</property> 176 </object> 177 </child> 178 <child> 179 <object class="GtkLabel"> 180 <property name="label" translatable="1">_OK</property> 181 <property name="use-underline">1</property> 182 <property name="mnemonic-widget">anastasis_gtk_c_code_dialog_btn_ok</property> 183 </object> 184 </child> 185 </object> 186 </property> 187 </object> 188 </child> 189 </object> 190 </child> 191 </object> 192 </interface> 193