2012-07-20 12:05:10 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
|
|
|
<!-- interface-requires gtk+ 3.0 -->
|
2019-10-24 14:08:18 +13:00
|
|
|
<template class="NetDeviceWifi" parent="GtkStack">
|
2017-08-24 23:37:41 +08:00
|
|
|
<child>
|
2018-12-15 17:54:13 +01:00
|
|
|
<object class="GtkBox" id="listbox_box">
|
2012-12-09 19:38:32 -05:00
|
|
|
<property name="visible">True</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2019-10-24 14:08:18 +13:00
|
|
|
<object class="GtkBox" id="hotspot_box">
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="border_width">12</property>
|
2018-01-26 22:25:18 -02:00
|
|
|
<property name="orientation">vertical</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="spacing">9</property>
|
2012-07-26 14:43:17 +01:00
|
|
|
<child>
|
2019-10-16 09:00:34 +13:00
|
|
|
<object class="GtkBox">
|
2012-07-26 14:43:17 +01:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
2012-07-30 09:53:38 +01:00
|
|
|
<child>
|
2019-10-16 09:00:34 +13:00
|
|
|
<object class="GtkBox">
|
2012-07-30 09:53:38 +01:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="halign">start</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<property name="spacing">3</property>
|
2012-07-30 09:53:38 +01:00
|
|
|
<child>
|
2019-10-16 09:00:34 +13:00
|
|
|
<object class="GtkLabel">
|
2012-07-30 09:53:38 +01:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="xalign">0</property>
|
|
|
|
<property name="label" translatable="yes">Wi-Fi Hotspot</property>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="weight" value="bold"/>
|
|
|
|
<attribute name="scale" value="1.2"/>
|
|
|
|
</attributes>
|
2012-07-30 09:53:38 +01:00
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="expand">False</property>
|
|
|
|
<property name="fill">True</property>
|
|
|
|
<property name="position">0</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
2019-10-16 09:00:34 +13:00
|
|
|
<object class="GtkLabel">
|
2012-07-30 09:53:38 +01:00
|
|
|
<property name="visible">True</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="xalign">0</property>
|
2018-09-20 15:12:44 +02:00
|
|
|
<property name="wrap">True</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="label" translatable="yes">Switch off to connect to a Wi-Fi network</property>
|
2012-07-30 09:53:38 +01:00
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="expand">False</property>
|
|
|
|
<property name="fill">True</property>
|
|
|
|
<property name="position">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="expand">False</property>
|
|
|
|
<property name="fill">True</property>
|
|
|
|
<property name="position">0</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
2019-10-15 12:34:44 +13:00
|
|
|
<object class="GtkSwitch" id="hotspot_off_switch">
|
2012-07-30 09:53:38 +01:00
|
|
|
<property name="visible">True</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="halign">end</property>
|
|
|
|
<property name="valign">center</property>
|
2019-10-24 20:29:35 +13:00
|
|
|
<signal name="notify::active" handler="hotspot_off_switch_changed_cb" object="NetDeviceWifi" swapped="yes"/>
|
2012-07-30 09:53:38 +01:00
|
|
|
</object>
|
|
|
|
<packing>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="expand">False</property>
|
2012-07-30 09:53:38 +01:00
|
|
|
<property name="fill">True</property>
|
|
|
|
<property name="position">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
2012-07-26 14:43:17 +01:00
|
|
|
</object>
|
|
|
|
<packing>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="expand">False</property>
|
|
|
|
<property name="fill">True</property>
|
|
|
|
<property name="position">0</property>
|
2012-07-26 14:43:17 +01:00
|
|
|
</packing>
|
|
|
|
</child>
|
2017-08-24 23:37:41 +08:00
|
|
|
<child>
|
2019-10-16 09:00:34 +13:00
|
|
|
<object class="GtkGrid">
|
2012-07-26 14:43:17 +01:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="halign">center</property>
|
|
|
|
<property name="valign">start</property>
|
|
|
|
<property name="row_spacing">10</property>
|
|
|
|
<property name="column_spacing">6</property>
|
|
|
|
<property name="column-homogeneous">True</property>
|
|
|
|
<child>
|
2019-10-15 12:34:44 +13:00
|
|
|
<object class="GtkLabel" id="hotspot_network_name_heading_label">
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="xalign">1</property>
|
|
|
|
<property name="label" translatable="yes">Network Name</property>
|
2019-10-15 12:34:44 +13:00
|
|
|
<property name="mnemonic_widget">hotspot_network_name_label</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<style>
|
|
|
|
<class name="dim-label"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">0</property>
|
|
|
|
<property name="top_attach">0</property>
|
|
|
|
<property name="width">1</property>
|
|
|
|
<property name="height">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
2019-10-15 12:34:44 +13:00
|
|
|
<object class="GtkLabel" id="hotspot_security_heading_label">
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="xalign">1</property>
|
|
|
|
<property name="label" translatable="yes">Security type</property>
|
2019-10-15 12:34:44 +13:00
|
|
|
<property name="mnemonic_widget">hotspot_security_label</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<style>
|
|
|
|
<class name="dim-label"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">0</property>
|
2019-10-18 13:50:04 +13:00
|
|
|
<property name="top_attach">1</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="width">1</property>
|
|
|
|
<property name="height">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
2019-10-15 12:34:44 +13:00
|
|
|
<object class="GtkLabel" id="hotspot_network_name_label">
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="xalign">0</property>
|
|
|
|
<property name="label"></property>
|
|
|
|
<property name="selectable">True</property>
|
2019-10-18 13:42:49 +13:00
|
|
|
<property name="max-width-chars">50</property>
|
|
|
|
<property name="ellipsize">end</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">1</property>
|
|
|
|
<property name="top_attach">0</property>
|
|
|
|
<property name="width">1</property>
|
|
|
|
<property name="height">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
2019-10-15 12:34:44 +13:00
|
|
|
<object class="GtkLabel" id="hotspot_security_label">
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="xalign">0</property>
|
|
|
|
<property name="label"></property>
|
|
|
|
<property name="selectable">True</property>
|
2019-10-18 13:42:49 +13:00
|
|
|
<property name="max-width-chars">50</property>
|
|
|
|
<property name="ellipsize">end</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">1</property>
|
2019-10-18 13:50:04 +13:00
|
|
|
<property name="top_attach">1</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="width">1</property>
|
|
|
|
<property name="height">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
2019-10-15 12:34:44 +13:00
|
|
|
<object class="GtkLabel" id="hotspot_security_key_heading_label">
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="xalign">1</property>
|
|
|
|
<property name="label" context="Wi-Fi passkey" translatable="yes">Password</property>
|
2019-10-15 12:34:44 +13:00
|
|
|
<property name="mnemonic_widget">hotspot_security_key_label</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<style>
|
|
|
|
<class name="dim-label"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">0</property>
|
2019-10-18 13:50:04 +13:00
|
|
|
<property name="top_attach">2</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="width">1</property>
|
|
|
|
<property name="height">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
2019-10-15 12:34:44 +13:00
|
|
|
<object class="GtkLabel" id="hotspot_security_key_label">
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="xalign">0</property>
|
|
|
|
<property name="label"></property>
|
|
|
|
<property name="selectable">True</property>
|
2019-10-18 13:42:49 +13:00
|
|
|
<property name="max-width-chars">50</property>
|
|
|
|
<property name="ellipsize">end</property>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="font-desc" value="Monospace"/>
|
|
|
|
</attributes>
|
2017-08-24 23:37:41 +08:00
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">1</property>
|
2019-10-18 13:50:04 +13:00
|
|
|
<property name="top_attach">2</property>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="width">1</property>
|
|
|
|
<property name="height">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
2012-07-26 14:43:17 +01:00
|
|
|
</object>
|
|
|
|
<packing>
|
2017-08-24 23:37:41 +08:00
|
|
|
<property name="expand">True</property>
|
|
|
|
<property name="fill">True</property>
|
2012-12-09 19:38:32 -05:00
|
|
|
<property name="position">1</property>
|
2012-07-26 14:43:17 +01:00
|
|
|
</packing>
|
|
|
|
</child>
|
2012-07-20 12:05:10 +01:00
|
|
|
</object>
|
2017-08-24 23:37:41 +08:00
|
|
|
<packing>
|
|
|
|
<property name="position">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
2019-10-24 14:08:18 +13:00
|
|
|
</template>
|
2017-07-11 16:31:56 -03:00
|
|
|
|
|
|
|
<!-- Center widget -->
|
|
|
|
<object class="GtkBox" id="center_box">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<property name="halign">center</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<child>
|
2019-10-15 12:34:44 +13:00
|
|
|
<object class="GtkLabel" id="title_label">
|
2017-07-11 16:31:56 -03:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="label" translatable="yes">Wi-Fi</property>
|
|
|
|
<style>
|
|
|
|
<class name="title" />
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2019-10-15 12:34:44 +13:00
|
|
|
<object class="GtkLabel" id="status_label">
|
2017-07-11 16:31:56 -03:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<style>
|
|
|
|
<class name="subtitle" />
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
|
|
|
|
<!-- Box with the On/Off switch + menu button -->
|
|
|
|
<object class="GtkBox" id="header_box">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="spacing">6</property>
|
|
|
|
<property name="halign">end</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkSwitch" id="device_off_switch">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="valign">center</property>
|
2019-10-24 20:29:35 +13:00
|
|
|
<signal name="notify::active" handler="device_off_switch_changed_cb" object="NetDeviceWifi" swapped="yes"/>
|
2017-07-11 16:31:56 -03:00
|
|
|
<child internal-child="accessible">
|
2019-10-16 09:00:34 +13:00
|
|
|
<object class="AtkObject">
|
2017-07-11 16:31:56 -03:00
|
|
|
<property name="accessible-name" translatable="yes">Turn Wi-Fi off</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkMenuButton" id="header_button">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="popover">header_button_popover</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkImage">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
2018-10-12 11:42:10 +13:00
|
|
|
<property name="icon_name">view-more-symbolic</property>
|
2017-07-11 16:31:56 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
|
|
|
|
<!-- Menu Popover -->
|
|
|
|
<object class="GtkPopoverMenu" id="header_button_popover">
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="margin">12</property>
|
|
|
|
<property name="spacing">6</property>
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<child>
|
2019-10-24 20:29:35 +13:00
|
|
|
<object class="GtkModelButton">
|
2017-07-11 16:31:56 -03:00
|
|
|
<property name="label" translatable="yes">_Connect to Hidden Network…</property>
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="receives_default">True</property>
|
|
|
|
<property name="use_underline">True</property>
|
|
|
|
<property name="xalign">0.0</property>
|
2019-10-24 20:29:35 +13:00
|
|
|
<signal name="clicked" handler="connect_hidden_button_clicked_cb" object="NetDeviceWifi" swapped="yes"/>
|
2017-07-11 16:31:56 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkModelButton" id="start_hotspot_button">
|
|
|
|
<property name="label" translatable="yes">_Turn On Wi-Fi Hotspot…</property>
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="receives_default">True</property>
|
|
|
|
<property name="use_underline">True</property>
|
|
|
|
<property name="xalign">0.0</property>
|
2019-10-24 20:29:35 +13:00
|
|
|
<signal name="clicked" handler="start_hotspot_button_clicked_cb" object="NetDeviceWifi" swapped="yes"/>
|
2017-07-11 16:31:56 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2019-10-24 20:29:35 +13:00
|
|
|
<object class="GtkModelButton">
|
2017-07-11 16:31:56 -03:00
|
|
|
<property name="label" translatable="yes">_Known Wi-Fi Networks</property>
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="receives_default">True</property>
|
|
|
|
<property name="use_underline">True</property>
|
|
|
|
<property name="xalign">0.0</property>
|
2019-10-24 20:29:35 +13:00
|
|
|
<signal name="clicked" handler="history_button_clicked_cb" object="NetDeviceWifi" swapped="yes"/>
|
2017-07-11 16:31:56 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
2012-07-20 12:05:10 +01:00
|
|
|
</interface>
|