anastasis-gtk

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

anastasis_gtk_add_provider.ui (6258B)


      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 Lesser 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 Lesser General Public License for more details.
     16 
     17 You should have received a copy of the GNU Lesser 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="add_provider_dialog">
     24     <property name="modal">1</property>
     25     <property name="focus-widget">url_entry</property>
     26     <signal name="response" handler="add_provider_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="vexpand">1</property>
     34             <property name="focusable">1</property>
     35             <property name="orientation">vertical</property>
     36             <child>
     37               <object class="GtkLabel" id="error_label">
     38                 <property name="visible">0</property>
     39                 <property name="label">DYNAMICALLY GENERATED</property>
     40                 <attributes>
     41                   <attribute name="foreground" value="#e0e01b1b2424"></attribute>
     42                 </attributes>
     43                 <property name="margin-top">10</property>
     44                 <property name="margin-bottom">10</property>
     45               </object>
     46             </child>
     47             <child>
     48               <object class="GtkBox">
     49                 <property name="valign">center</property>
     50                 <property name="focusable">1</property>
     51                 <property name="margin-top">5</property>
     52                 <property name="margin-bottom">5</property>
     53                 <property name="hexpand">0</property>
     54                 <child>
     55                   <object class="GtkLabel">
     56                     <property name="label" translatable="1">Provider URL:</property>
     57                     <property name="margin-start">5</property>
     58                     <property name="margin-end">5</property>
     59                   </object>
     60                 </child>
     61                 <child>
     62                   <object class="GtkEntry" id="url_entry">
     63                     <property name="hexpand">1</property>
     64                     <property name="focusable">1</property>
     65                     <property name="activates-default">1</property>
     66                     <property name="width-chars">54</property>
     67                     <property name="primary-icon-name">gtk-edit</property>
     68                     <property name="secondary-icon-activatable">0</property>
     69                     <property name="secondary-icon-sensitive">0</property>
     70                     <property name="placeholder-text" translatable="1">https://</property>
     71                     <signal name="changed" handler="add_provider_url_entry_changed_cb" swapped="no"/>
     72                     <property name="margin-start">5</property>
     73                     <property name="margin-end">5</property>
     74                   </object>
     75                 </child>
     76               </object>
     77             </child>
     78           </object>
     79         </child>
     80       </object>
     81     </child>
     82     <action-widgets>
     83       <action-widget response="-6">cancel_button</action-widget>
     84       <action-widget response="-10">close_button</action-widget>
     85     </action-widgets>
     86     <child type="titlebar">
     87       <object class="GtkLabel">
     88         <property name="label" translatable="1">Add Anastasis provider</property>
     89       </object>
     90     </child>
     91     <action-widgets>
     92       <action-widget response="-6">cancel_button</action-widget>
     93       <action-widget response="-10">close_button</action-widget>
     94     </action-widgets>
     95     <child internal-child="action_area">
     96       <object class="GtkBox">
     97         <property name="can-focus">0</property>
     98         <property name="homogeneous">1</property>
     99         <property name="spacing">6</property>
    100         <property name="halign">end</property>
    101         <child>
    102           <object class="GtkButton" id="cancel_button">
    103             <property name="child">
    104               <object class="GtkBox">
    105                 <property name="spacing">2</property>
    106                 <property name="halign">center</property>
    107                 <child>
    108                   <object class="GtkImage">
    109                     <property name="icon-name">gtk-cancel</property>
    110                   </object>
    111                 </child>
    112                 <child>
    113                   <object class="GtkLabel">
    114                     <property name="label" translatable="1">_Cancel</property>
    115                     <property name="use-underline">1</property>
    116                     <property name="mnemonic-widget">cancel_button</property>
    117                   </object>
    118                 </child>
    119               </object>
    120             </property>
    121           </object>
    122         </child>
    123         <child>
    124           <object class="GtkButton" id="close_button">
    125             <property name="child">
    126               <object class="GtkBox">
    127                 <property name="spacing">2</property>
    128                 <property name="halign">center</property>
    129                 <child>
    130                   <object class="GtkImage">
    131                     <property name="icon-name">list-add</property>
    132                   </object>
    133                 </child>
    134                 <child>
    135                   <object class="GtkLabel">
    136                     <property name="label" translatable="1">_Add</property>
    137                     <property name="use-underline">1</property>
    138                     <property name="mnemonic-widget">close_button</property>
    139                   </object>
    140                 </child>
    141               </object>
    142             </property>
    143           </object>
    144         </child>
    145       </object>
    146     </child>
    147   </object>
    148 </interface>
    149