Boy this was hard. To ease the pain of porting wireless-security to GTK4, add a new WsFileChooserButton class that mimics the behavior of a button that triggers a filechooser, as per the migration guide suggests. There were lots of GtkGrids, so the diff is particularly horrendous. Sorry. This needs serious testing before landing.
139 lines
5 KiB
XML
139 lines
5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="3.4"/>
|
|
<template class="EAPMethodTLS" parent="GtkGrid">
|
|
<property name="valign">start</property>
|
|
<property name="column_spacing">6</property>
|
|
<property name="row_spacing">6</property>
|
|
<child>
|
|
<object class="GtkLabel" id="identity_label">
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">I_dentity</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">identity_entry</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="identity_entry">
|
|
<property name="hexpand">True</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="user_cert_label">
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">_User certificate</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">user_cert_button</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="WsFileChooserButton" id="user_cert_button">
|
|
<property name="hexpand">True</property>
|
|
<property name="title" translatable="yes">Choose a Certificate Authority certificate</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="ca_cert_label">
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">C_A certificate</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">ca_cert_button</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="WsFileChooserButton" id="ca_cert_button">
|
|
<property name="hexpand">True</property>
|
|
<property name="title" translatable="yes">Choose a Certificate Authority certificate</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkCheckButton" id="ca_cert_not_required_check">
|
|
<property name="label" translatable="yes">No CA certificate is _required</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="use_underline">True</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="private_key_label">
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">Private _key</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">private_key_button</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">4</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="WsFileChooserButton" id="private_key_button">
|
|
<property name="hexpand">True</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">4</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="private_key_password_label">
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">_Private key password</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">private_key_password_entry</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">5</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="private_key_password_entry">
|
|
<property name="hexpand">True</property>
|
|
<property name="visibility">False</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">5</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkCheckButton" id="show_password_check">
|
|
<property name="label" translatable="yes">Sho_w password</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="use_underline">True</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">6</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|