Many devices are able to scan a specifically formatted QR code to connect to a wifi network. To make sharing of wifi connections easier, it would be helpful to display such a QR code in the wifi settings. A button is added to the wifi connection row. This row is shown in the general wifi settings panel, as well as in the "Known Wi-Fi Network" dialog. Clicking the button opens an additional dialog, which shows the QR code.
88 lines
3.3 KiB
XML
88 lines
3.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- Generated with glade 3.20.0 -->
|
|
<interface>
|
|
<requires lib="gtk+" version="3.20"/>
|
|
<template class="CcWifiConnectionRow" parent="AdwActionRow">
|
|
<property name="activatable">True</property>
|
|
<child type="prefix">
|
|
<object class="GtkBox">
|
|
<property name="valign">center</property>
|
|
<property name="margin_end">6</property>
|
|
<child>
|
|
<object class="GtkCheckButton" id="checkbutton">
|
|
<property name="halign">start</property>
|
|
<property name="valign">center</property>
|
|
<property name="margin_end">6</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImage" id="strength_icon">
|
|
<property name="icon_name">network-wireless-signal-excellent-symbolic</property>
|
|
<property name="icon_size">1</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImage" id="encrypted_icon">
|
|
<property name="valign">end</property>
|
|
<property name="pixel-size">8</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
<child type="suffix">
|
|
<object class="GtkBox">
|
|
<property name="valign">center</property>
|
|
<property name="margin_start">6</property>
|
|
<property name="spacing">6</property>
|
|
<child>
|
|
<object class="GtkLabel" id="active_label">
|
|
<property name="margin_end">6</property>
|
|
<property name="label" translatable="yes">Connected</property>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinner" id="connecting_spinner">
|
|
<property name="name">connecting_spinner</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="qr_code_button">
|
|
<property name="name">qr_code_button</property>
|
|
<property name="icon_name">qr-code-symbolic</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<signal name="clicked" handler="qr_code_clicked_cb" object="CcWifiConnectionRow" swapped="yes"/>
|
|
<accessibility>
|
|
<property name="label" translatable="yes">Show QR-Code</property>
|
|
</accessibility>
|
|
<style>
|
|
<class name="flat"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="options_button">
|
|
<property name="name">options_button</property>
|
|
<property name="icon_name">emblem-system-symbolic</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<signal name="clicked" handler="configure_clicked_cb" object="CcWifiConnectionRow" swapped="yes"/>
|
|
<accessibility>
|
|
<property name="label" translatable="yes">Options…</property>
|
|
</accessibility>
|
|
<style>
|
|
<class name="flat"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
</template>
|
|
</interface>
|