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.
141 lines
4.4 KiB
XML
141 lines
4.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="3.4"/>
|
|
<object class="GtkListStore" id="key_index_model">
|
|
<columns>
|
|
<!-- column-name gchararray -->
|
|
<column type="gchararray"/>
|
|
</columns>
|
|
<data>
|
|
<row>
|
|
<col id="0" translatable="yes">1 (Default)</col>
|
|
</row>
|
|
<row>
|
|
<col id="0">2</col>
|
|
</row>
|
|
<row>
|
|
<col id="0">3</col>
|
|
</row>
|
|
<row>
|
|
<col id="0">4</col>
|
|
</row>
|
|
</data>
|
|
</object>
|
|
<object class="GtkListStore" id="auth_method_model">
|
|
<columns>
|
|
<!-- column-name gchararray -->
|
|
<column type="gchararray"/>
|
|
</columns>
|
|
<data>
|
|
<row>
|
|
<col id="0" translatable="yes">Open System</col>
|
|
</row>
|
|
<row>
|
|
<col id="0" translatable="yes">Shared Key</col>
|
|
</row>
|
|
</data>
|
|
</object>
|
|
<template class="WirelessSecurityWEPKey" parent="GtkGrid">
|
|
<property name="column_spacing">6</property>
|
|
<property name="row_spacing">6</property>
|
|
<child>
|
|
<object class="GtkLabel" id="key_label">
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">_Key</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">key_entry</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="key_entry">
|
|
<property name="hexpand">True</property>
|
|
<property name="max_length">64</property>
|
|
<property name="visibility">False</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="xalign">0</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkCheckButton" id="show_key_check">
|
|
<property name="label" translatable="yes">Sho_w key</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="use_underline">True</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="auth_method_label">
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">Au_thentication</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">auth_method_combo</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkComboBox" id="auth_method_combo">
|
|
<property name="hexpand">True</property>
|
|
<property name="model">auth_method_model</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
<child>
|
|
<object class="GtkCellRendererText"/>
|
|
<attributes>
|
|
<attribute name="text">0</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="key_index_label">
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">WEP inde_x</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">key_index_combo</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkComboBox" id="key_index_combo">
|
|
<property name="hexpand">True</property>
|
|
<property name="model">key_index_model</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
<child>
|
|
<object class="GtkCellRendererText"/>
|
|
<attributes>
|
|
<attribute name="text">0</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|