anastasis_gtk_edit_providers.glade (16199B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Generated with glade 3.38.2 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 23 --> 24 <interface> 25 <requires lib="gtk+" version="3.8"/> 26 <!-- interface-license-type lgplv3 --> 27 <!-- interface-name Anastasis-gtk --> 28 <!-- interface-copyright 2019-2021 Anastasis SARL --> 29 <!-- interface-authors Christian Grothoff --> 30 <object class="GtkListStore" id="provider_liststore"> 31 <columns> 32 <!-- column-name url --> 33 <column type="gchararray"/> 34 <!-- column-name status --> 35 <column type="gchararray"/> 36 <!-- column-name status_color --> 37 <column type="gchararray"/> 38 <!-- column-name liability_limit --> 39 <column type="gchararray"/> 40 <!-- column-name enabled --> 41 <column type="gboolean"/> 42 <!-- column-name sensitive --> 43 <column type="gboolean"/> 44 <!-- column-name not_sensitive --> 45 <column type="gboolean"/> 46 <!-- column-name business_name --> 47 <column type="gchararray"/> 48 </columns> 49 </object> 50 <object class="GtkDialog" id="edit_provider_dialog"> 51 <property name="can-focus">False</property> 52 <property name="modal">True</property> 53 <property name="window-position">center</property> 54 <property name="type-hint">dialog</property> 55 <signal name="response" handler="edit_provider_dialog_response_cb" swapped="no"/> 56 <child internal-child="vbox"> 57 <object class="GtkBox"> 58 <property name="visible">True</property> 59 <property name="can-focus">False</property> 60 <property name="orientation">vertical</property> 61 <property name="spacing">2</property> 62 <child internal-child="action_area"> 63 <object class="GtkButtonBox"> 64 <property name="visible">True</property> 65 <property name="can-focus">False</property> 66 <property name="layout-style">end</property> 67 <child> 68 <object class="GtkButton" id="cancel_button"> 69 <property name="label">gtk-cancel</property> 70 <property name="visible">True</property> 71 <property name="can-focus">False</property> 72 <property name="receives-default">False</property> 73 <property name="use-stock">True</property> 74 <property name="always-show-image">True</property> 75 </object> 76 <packing> 77 <property name="expand">True</property> 78 <property name="fill">True</property> 79 <property name="position">0</property> 80 </packing> 81 </child> 82 <child> 83 <object class="GtkButton" id="close_button"> 84 <property name="label">gtk-apply</property> 85 <property name="visible">True</property> 86 <property name="can-focus">False</property> 87 <property name="receives-default">False</property> 88 <property name="use-stock">True</property> 89 <property name="always-show-image">True</property> 90 </object> 91 <packing> 92 <property name="expand">True</property> 93 <property name="fill">True</property> 94 <property name="position">1</property> 95 </packing> 96 </child> 97 </object> 98 <packing> 99 <property name="expand">False</property> 100 <property name="fill">False</property> 101 <property name="position">0</property> 102 </packing> 103 </child> 104 <child> 105 <object class="GtkBox"> 106 <property name="visible">True</property> 107 <property name="can-focus">True</property> 108 <property name="orientation">vertical</property> 109 <child> 110 <object class="GtkBox"> 111 <property name="visible">True</property> 112 <property name="can-focus">True</property> 113 <child> 114 <object class="GtkLabel"> 115 <property name="visible">True</property> 116 <property name="can-focus">False</property> 117 <property name="margin-left">10</property> 118 <property name="label" translatable="yes">Provider URL:</property> 119 </object> 120 <packing> 121 <property name="expand">False</property> 122 <property name="fill">True</property> 123 <property name="padding">5</property> 124 <property name="position">0</property> 125 </packing> 126 </child> 127 <child> 128 <object class="GtkEntry" id="url_entry"> 129 <property name="visible">True</property> 130 <property name="can-focus">True</property> 131 <property name="has-focus">True</property> 132 <property name="is-focus">True</property> 133 <property name="activates-default">True</property> 134 <property name="width-chars">54</property> 135 <property name="primary-icon-stock">gtk-edit</property> 136 <property name="secondary-icon-activatable">False</property> 137 <property name="secondary-icon-sensitive">False</property> 138 <property name="placeholder-text" translatable="yes">https://</property> 139 <signal name="changed" handler="url_entry_changed_cb" swapped="no"/> 140 </object> 141 <packing> 142 <property name="expand">True</property> 143 <property name="fill">True</property> 144 <property name="padding">5</property> 145 <property name="position">1</property> 146 </packing> 147 </child> 148 <child> 149 <object class="GtkButton" id="add_button"> 150 <property name="label">gtk-add</property> 151 <property name="visible">True</property> 152 <property name="sensitive">False</property> 153 <property name="can-focus">False</property> 154 <property name="can-default">True</property> 155 <property name="has-default">True</property> 156 <property name="receives-default">True</property> 157 <property name="use-stock">True</property> 158 <signal name="clicked" handler="url_add_button_clicked_cb" swapped="no"/> 159 </object> 160 <packing> 161 <property name="expand">False</property> 162 <property name="fill">False</property> 163 <property name="position">2</property> 164 </packing> 165 </child> 166 </object> 167 <packing> 168 <property name="expand">False</property> 169 <property name="fill">False</property> 170 <property name="padding">5</property> 171 <property name="position">0</property> 172 </packing> 173 </child> 174 <child> 175 <object class="GtkBox"> 176 <property name="visible">True</property> 177 <property name="can-focus">False</property> 178 <child> 179 <object class="GtkFrame"> 180 <property name="visible">True</property> 181 <property name="can-focus">False</property> 182 <property name="margin-top">10</property> 183 <property name="label-xalign">0</property> 184 <property name="shadow-type">none</property> 185 <child> 186 <object class="GtkAlignment"> 187 <property name="visible">True</property> 188 <property name="can-focus">False</property> 189 <property name="left-padding">12</property> 190 <child> 191 <object class="GtkViewport"> 192 <property name="visible">True</property> 193 <property name="can-focus">False</property> 194 <child> 195 <object class="GtkTreeView" id="provider_tree_view"> 196 <property name="height-request">300</property> 197 <property name="visible">True</property> 198 <property name="can-focus">False</property> 199 <property name="model">provider_liststore</property> 200 <signal name="button-press-event" handler="provider_tree_view_button_press_event_cb" swapped="no"/> 201 <child internal-child="selection"> 202 <object class="GtkTreeSelection"> 203 <property name="mode">browse</property> 204 </object> 205 </child> 206 <child> 207 <object class="GtkTreeViewColumn" id="enabled_column"> 208 <property name="spacing">5</property> 209 <property name="title" translatable="yes">Use</property> 210 <property name="reorderable">True</property> 211 <property name="sort-indicator">True</property> 212 <property name="sort-column-id">6</property> 213 <child> 214 <object class="GtkCellRendererToggle" id="use_toggle"> 215 <signal name="toggled" handler="provider_toggle_callback" swapped="no"/> 216 </object> 217 <attributes> 218 <attribute name="sensitive">5</attribute> 219 <attribute name="activatable">5</attribute> 220 <attribute name="active">4</attribute> 221 <attribute name="inconsistent">6</attribute> 222 </attributes> 223 </child> 224 </object> 225 </child> 226 <child> 227 <object class="GtkTreeViewColumn" id="url_column"> 228 <property name="spacing">5</property> 229 <property name="sizing">autosize</property> 230 <property name="title" translatable="yes">Provider</property> 231 <child> 232 <object class="GtkCellRendererText" id="url_renderer"/> 233 <attributes> 234 <attribute name="text">7</attribute> 235 </attributes> 236 </child> 237 </object> 238 </child> 239 <child> 240 <object class="GtkTreeViewColumn" id="liability_column"> 241 <property name="spacing">5</property> 242 <property name="sizing">autosize</property> 243 <property name="title" translatable="yes">Liability limit</property> 244 <child> 245 <object class="GtkCellRendererText" id="liability_limit_text"/> 246 <attributes> 247 <attribute name="visible">5</attribute> 248 <attribute name="text">3</attribute> 249 </attributes> 250 </child> 251 </object> 252 </child> 253 <child> 254 <object class="GtkTreeViewColumn"> 255 <property name="spacing">5</property> 256 <property name="title" translatable="yes">Status</property> 257 <property name="reorderable">True</property> 258 <property name="sort-indicator">True</property> 259 <property name="sort-column-id">6</property> 260 <child> 261 <object class="GtkCellRendererText" id="status"/> 262 <attributes> 263 <attribute name="foreground">2</attribute> 264 <attribute name="text">1</attribute> 265 </attributes> 266 </child> 267 </object> 268 </child> 269 </object> 270 </child> 271 </object> 272 </child> 273 </object> 274 </child> 275 <child type="label"> 276 <object class="GtkLabel"> 277 <property name="visible">True</property> 278 <property name="can-focus">False</property> 279 <property name="label" translatable="yes">Known providers</property> 280 <attributes> 281 <attribute name="weight" value="bold"/> 282 </attributes> 283 </object> 284 </child> 285 </object> 286 <packing> 287 <property name="expand">True</property> 288 <property name="fill">True</property> 289 <property name="padding">5</property> 290 <property name="position">0</property> 291 </packing> 292 </child> 293 </object> 294 <packing> 295 <property name="expand">True</property> 296 <property name="fill">True</property> 297 <property name="position">1</property> 298 </packing> 299 </child> 300 </object> 301 <packing> 302 <property name="expand">True</property> 303 <property name="fill">True</property> 304 <property name="position">0</property> 305 </packing> 306 </child> 307 </object> 308 </child> 309 <action-widgets> 310 <action-widget response="-6">cancel_button</action-widget> 311 <action-widget response="-10">close_button</action-widget> 312 </action-widgets> 313 <child type="titlebar"> 314 <object class="GtkLabel"> 315 <property name="visible">True</property> 316 <property name="can-focus">False</property> 317 <property name="label" translatable="yes">Add Anastasis provider</property> 318 </object> 319 </child> 320 <action-widgets> 321 <action-widget response="-6">cancel_button</action-widget> 322 <action-widget response="-10">close_button</action-widget> 323 </action-widgets> 324 </object> 325 </interface>