anastasis-gtk

Demonstrator GUI for Anastasis
Log | Files | Refs | README | LICENSE

anastasis_gtk_auth_add_email.ui (6969B)


      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: Belen Pena, Christian Grothoff, Dennis Neufeld-->
     21 <interface>
     22   <requires lib="gtk" version="4.0"/>
     23   <object class="GtkDialog" id="anastasis_gtk_b_email_dialog">
     24     <property name="focus-widget">anastasis_gtk_b_email_dialog_mailaddress_entry</property>
     25     <property name="default-widget">anastasis_gtk_b_email_dialog_btn_ok</property>
     26     <signal name="response" handler="anastasis_gtk_b_email_dialog_response_cb" swapped="no"/>
     27     <child internal-child="content_area">
     28       <object class="GtkBox">
     29         <property name="orientation">vertical</property>
     30         <property name="spacing">2</property>
     31         <child>
     32           <object class="GtkBox">
     33             <property name="orientation">vertical</property>
     34             <property name="margin-top">5</property>
     35             <property name="margin-bottom">5</property>
     36             <child>
     37               <object class="GtkLabel" id="explainer_label">
     38                 <property name="name">explainer_label</property>
     39                 <property name="label" translatable="1">For email authentication, you need to
     40 provide an email address. When recovering
     41 your secret, you will be asked to enter the
     42 code you will receive by email.</property>
     43                 <property name="margin-top">20</property>
     44                 <property name="margin-bottom">20</property>
     45               </object>
     46             </child>
     47             <child>
     48               <object class="GtkBox">
     49                 <property name="valign">center</property>
     50                 <property name="margin-bottom">55</property>
     51                 <property name="orientation">vertical</property>
     52                 <property name="margin-top">5</property>
     53                 <property name="vexpand">0</property>
     54                 <child>
     55                   <object class="GtkLabel">
     56                     <property name="valign">center</property>
     57                     <property name="halign">start</property>
     58                     <property name="margin-start">25</property>
     59                     <property name="margin-end">25</property>
     60                     <property name="label" translatable="1">Email address</property>
     61                     <property name="margin-top">5</property>
     62                     <property name="margin-bottom">5</property>
     63                   </object>
     64                 </child>
     65                 <child>
     66                   <object class="GtkEntry" id="anastasis_gtk_b_email_dialog_mailaddress_entry">
     67                     <property name="vexpand">1</property>
     68                     <property name="focusable">1</property>
     69                     <property name="margin-start">25</property>
     70                     <property name="margin-end">25</property>
     71                     <property name="hexpand">1</property>
     72                     <property name="activates-default">1</property>
     73                     <property name="width-chars">36</property>
     74                     <property name="primary-icon-name">dialog-password</property>
     75                     <property name="input-purpose">email</property>
     76                     <signal name="changed" handler="anastasis_gtk_b_email_dialog_mailaddress_entry_changed_cb" swapped="no"/>
     77                     <property name="margin-top">5</property>
     78                     <property name="margin-bottom">5</property>
     79                   </object>
     80                 </child>
     81               </object>
     82             </child>
     83           </object>
     84         </child>
     85       </object>
     86     </child>
     87     <action-widgets>
     88       <action-widget response="-6">anastasis_gtk_b_email_dialog_btn_cancel</action-widget>
     89       <action-widget response="-5">anastasis_gtk_b_email_dialog_btn_ok</action-widget>
     90     </action-widgets>
     91     <child type="titlebar">
     92       <object class="GtkLabel">
     93         <property name="label" translatable="1">Configure email</property>
     94       </object>
     95     </child>
     96     <action-widgets>
     97       <action-widget response="-6">anastasis_gtk_b_email_dialog_btn_cancel</action-widget>
     98       <action-widget response="-5">anastasis_gtk_b_email_dialog_btn_ok</action-widget>
     99     </action-widgets>
    100     <child internal-child="action_area">
    101       <object class="GtkBox">
    102         <property name="can-focus">0</property>
    103         <property name="homogeneous">1</property>
    104         <property name="spacing">6</property>
    105         <property name="halign">end</property>
    106         <child>
    107           <object class="GtkButton" id="anastasis_gtk_b_email_dialog_btn_cancel">
    108             <property name="child">
    109               <object class="GtkBox">
    110                 <property name="spacing">2</property>
    111                 <property name="halign">center</property>
    112                 <child>
    113                   <object class="GtkImage">
    114                     <property name="icon-name">gtk-cancel</property>
    115                   </object>
    116                 </child>
    117                 <child>
    118                   <object class="GtkLabel">
    119                     <property name="label" translatable="1">_Cancel</property>
    120                     <property name="use-underline">1</property>
    121                     <property name="mnemonic-widget">anastasis_gtk_b_email_dialog_btn_cancel</property>
    122                   </object>
    123                 </child>
    124               </object>
    125             </property>
    126           </object>
    127         </child>
    128         <child>
    129           <object class="GtkButton" id="anastasis_gtk_b_email_dialog_btn_ok">
    130             <property name="sensitive">0</property>
    131             <property name="child">
    132               <object class="GtkBox">
    133                 <property name="spacing">2</property>
    134                 <property name="halign">center</property>
    135                 <child>
    136                   <object class="GtkImage">
    137                     <property name="icon-name">gtk-ok</property>
    138                   </object>
    139                 </child>
    140                 <child>
    141                   <object class="GtkLabel">
    142                     <property name="label" translatable="1">_OK</property>
    143                     <property name="use-underline">1</property>
    144                     <property name="mnemonic-widget">anastasis_gtk_b_email_dialog_btn_ok</property>
    145                   </object>
    146                 </child>
    147               </object>
    148             </property>
    149           </object>
    150         </child>
    151       </object>
    152     </child>
    153   </object>
    154 </interface>
    155