anastasis-gtk

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

anastasis_gtk_add_provider.ui (6326B)


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