anastasis_gtk_challenge_totp.ui (7133B)
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_totp_dialog"> 24 <signal name="response" handler="anastasis_gtk_c_totp_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_totp_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"> 43 <property name="orientation">vertical</property> 44 <child> 45 <object class="GtkSeparator"/> 46 </child> 47 <child> 48 <object class="GtkBox"> 49 <property name="margin-top">5</property> 50 <property name="margin-bottom">5</property> 51 <child> 52 <object class="GtkLabel"> 53 <property name="label" translatable="1">Please look up TOTP under:</property> 54 <property name="margin-start">5</property> 55 <property name="margin-end">5</property> 56 </object> 57 </child> 58 <child> 59 <object class="GtkLabel" id="challenge_instructions_label"> 60 <property name="label">SET DYNAMICALLY BY PROGRAM</property> 61 <attributes> 62 <attribute name="style" value="italic"></attribute> 63 </attributes> 64 </object> 65 </child> 66 </object> 67 </child> 68 <child> 69 <object class="GtkSeparator"/> 70 </child> 71 </object> 72 </child> 73 <child> 74 <object class="GtkBox"> 75 <property name="margin-top">5</property> 76 <property name="margin-bottom">5</property> 77 <child> 78 <object class="GtkLabel"> 79 <property name="label" translatable="1">Enter the PIN:</property> 80 <property name="margin-start">5</property> 81 <property name="margin-end">5</property> 82 </object> 83 </child> 84 <child> 85 <object class="GtkEntry" id="anastasis_gtk_c_totp_entry"> 86 <property name="focusable">1</property> 87 <property name="hexpand">1</property> 88 <property name="width-chars">24</property> 89 <property name="primary-icon-name">dialog-password</property> 90 <signal name="changed" handler="anastasis_gtk_c_totp_dialog_answer_entry_changed_cb" swapped="no"/> 91 <property name="margin-start">5</property> 92 <property name="margin-end">5</property> 93 </object> 94 </child> 95 </object> 96 </child> 97 </object> 98 </child> 99 <action-widgets> 100 <action-widget response="-6">anastasis_gtk_c_totp_dialog_btn_cancel</action-widget> 101 <action-widget response="-5">anastasis_gtk_c_totp_dialog_btn_ok</action-widget> 102 </action-widgets> 103 <child type="titlebar"> 104 <object class="GtkLabel" id="anastasis_gtk_c_totp_dialog_label"> 105 <property name="label" translatable="1">TOTP challenge</property> 106 </object> 107 </child> 108 <action-widgets> 109 <action-widget response="-6">anastasis_gtk_c_totp_dialog_btn_cancel</action-widget> 110 <action-widget response="-5">anastasis_gtk_c_totp_dialog_btn_ok</action-widget> 111 </action-widgets> 112 <child internal-child="action_area"> 113 <object class="GtkBox"> 114 <property name="can-focus">0</property> 115 <property name="homogeneous">1</property> 116 <property name="spacing">6</property> 117 <property name="halign">end</property> 118 <child> 119 <object class="GtkButton" id="anastasis_gtk_c_totp_dialog_btn_cancel"> 120 <property name="focusable">1</property> 121 <property name="receives-default">1</property> 122 <property name="child"> 123 <object class="GtkBox"> 124 <property name="spacing">2</property> 125 <property name="halign">center</property> 126 <child> 127 <object class="GtkImage"> 128 <property name="icon-name">gtk-cancel</property> 129 </object> 130 </child> 131 <child> 132 <object class="GtkLabel"> 133 <property name="label" translatable="1">_Cancel</property> 134 <property name="use-underline">1</property> 135 <property name="mnemonic-widget">anastasis_gtk_c_totp_dialog_btn_cancel</property> 136 </object> 137 </child> 138 </object> 139 </property> 140 </object> 141 </child> 142 <child> 143 <object class="GtkButton" id="anastasis_gtk_c_totp_dialog_btn_ok"> 144 <property name="sensitive">0</property> 145 <property name="receives-default">1</property> 146 <property name="child"> 147 <object class="GtkBox"> 148 <property name="spacing">2</property> 149 <property name="halign">center</property> 150 <child> 151 <object class="GtkImage"> 152 <property name="icon-name">gtk-ok</property> 153 </object> 154 </child> 155 <child> 156 <object class="GtkLabel"> 157 <property name="label" translatable="1">_OK</property> 158 <property name="use-underline">1</property> 159 <property name="mnemonic-widget">anastasis_gtk_c_totp_dialog_btn_ok</property> 160 </object> 161 </child> 162 </object> 163 </property> 164 </object> 165 </child> 166 </object> 167 </child> 168 </object> 169 </interface> 170