2011-03-12 14:27:22 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2010-12-02 16:03:53 +00:00
|
|
|
<interface>
|
2017-07-12 11:08:39 -03:00
|
|
|
<template class="CcNetworkPanel" parent="CcPanel">
|
2022-11-04 17:40:24 +05:30
|
|
|
<signal name="notify::folded" handler="network_panel_update_back_button_cb" swapped="yes"/>
|
|
|
|
|
|
|
|
<!-- Header Bar -->
|
|
|
|
<child type="titlebar">
|
|
|
|
<object class="AdwHeaderBar" id="titlebar">
|
|
|
|
<property name="show-end-title-buttons">True</property>
|
2023-02-22 21:40:01 +01:00
|
|
|
<property name="show-start-title-buttons" bind-source="CcNetworkPanel" bind-property="folded" bind-flags="default|sync-create" />
|
2022-11-04 17:40:24 +05:30
|
|
|
<property name="title-widget">
|
|
|
|
<object class="AdwWindowTitle" id="page_title"/>
|
|
|
|
</property>
|
|
|
|
|
|
|
|
<child type="start">
|
|
|
|
<object class="GtkButton" id="back_button">
|
2023-05-16 18:39:41 -03:00
|
|
|
<property name="tooltip-text" translatable="yes">Back</property>
|
2022-11-04 17:40:24 +05:30
|
|
|
<property name="visible">False</property>
|
|
|
|
<property name="icon-name">go-previous-symbolic</property>
|
|
|
|
<signal name="clicked" handler="network_panel_back_clicked_cb" swapped="yes"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<child type="start">
|
|
|
|
<object class="GtkButton" id="cancel_button">
|
|
|
|
<property name="visible">False</property>
|
|
|
|
<property name="label" translatable="yes">Cancel</property>
|
|
|
|
<signal name="clicked" handler="network_panel_cancel_clicked_cb" swapped="yes"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<child type="end">
|
|
|
|
<object class="GtkButton" id="save_button">
|
|
|
|
<property name="visible">False</property>
|
|
|
|
<property name="label" translatable="yes">Save</property>
|
|
|
|
<style>
|
|
|
|
<class name="suggested-action"/>
|
|
|
|
</style>
|
|
|
|
<signal name="clicked" handler="network_panel_save_clicked_cb" swapped="yes"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<child type="end">
|
|
|
|
<object class="GtkSwitch" id="enable_switch">
|
|
|
|
<property name="visible">False</property>
|
|
|
|
<signal name="notify::active" handler="network_panel_enable_changed_cb" swapped="yes"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
</object>
|
|
|
|
</child>
|
2017-07-16 14:55:32 -03:00
|
|
|
|
2022-01-19 13:15:26 -03:00
|
|
|
<child type="content">
|
2022-11-04 17:40:24 +05:30
|
|
|
<object class="AdwLeaflet" id="main_leaflet">
|
|
|
|
<property name="can-unfold">False</property>
|
|
|
|
<property name="can-navigate-back">True</property>
|
|
|
|
<signal name="notify::visible-child" handler="network_panel_update_back_button_cb" swapped="yes"/>
|
|
|
|
<signal name="notify::visible-child" handler="visible_child_changed_cb" swapped="yes"/>
|
|
|
|
|
|
|
|
<child>
|
2022-01-27 14:52:21 -08:00
|
|
|
<object class="AdwPreferencesPage">
|
|
|
|
<!-- Each group below will contain GtkStacks from the NetDevices -->
|
2010-12-02 16:03:53 +00:00
|
|
|
<child>
|
2022-01-27 14:52:21 -08:00
|
|
|
<object class="AdwPreferencesGroup">
|
2010-12-02 16:03:53 +00:00
|
|
|
<child>
|
2022-01-27 14:52:21 -08:00
|
|
|
<object class="GtkBox" id="box_wired">
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<property name="spacing">24</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="AdwPreferencesGroup" id="container_bluetooth">
|
|
|
|
<property name="visible">False</property>
|
2023-05-03 17:34:20 -03:00
|
|
|
<property name="title" translatable="yes">Bluetooth</property>
|
2022-01-27 14:52:21 -08:00
|
|
|
<child>
|
|
|
|
<object class="GtkListBox" id="box_bluetooth">
|
|
|
|
<property name="selection_mode">none</property>
|
|
|
|
<accessibility>
|
2023-04-12 18:35:20 -03:00
|
|
|
<relation name="labelled-by">container_bluetooth</relation>
|
2022-01-27 14:52:21 -08:00
|
|
|
</accessibility>
|
|
|
|
<style>
|
|
|
|
<class name="boxed-list" />
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="AdwPreferencesGRoup">
|
|
|
|
<property name="title" translatable="yes">VPN</property>
|
|
|
|
<property name="header-suffix">
|
|
|
|
<object class="GtkButton">
|
|
|
|
<property name="icon_name">list-add-symbolic</property>
|
2022-04-29 11:28:11 +02:00
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Add connection</property>
|
|
|
|
</accessibility>
|
2022-01-27 14:52:21 -08:00
|
|
|
<style>
|
|
|
|
<class name="flat" />
|
|
|
|
</style>
|
2023-05-26 11:43:32 +12:00
|
|
|
<signal name="clicked" handler="create_connection_cb" object="CcNetworkPanel" swapped="yes" />
|
2022-01-27 14:52:21 -08:00
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkStack" id="vpn_stack">
|
|
|
|
<child>
|
|
|
|
<!-- "Not set up" row -->
|
|
|
|
<object class="GtkListBox" id="empty_listbox">
|
|
|
|
<property name="selection_mode">none</property>
|
|
|
|
<style>
|
|
|
|
<class name="boxed-list" />
|
|
|
|
</style>
|
2017-07-16 14:55:32 -03:00
|
|
|
<child>
|
2022-01-27 14:52:21 -08:00
|
|
|
<object class="AdwActionRow">
|
|
|
|
<property name="activatable">False</property>
|
|
|
|
<property name="title" translatable="yes">Not set up</property>
|
2017-07-16 14:55:32 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
2010-12-02 16:03:53 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
2022-08-09 19:21:12 -07:00
|
|
|
<child>
|
|
|
|
<object class="GtkListBox" id="box_vpn">
|
|
|
|
<property name="selection_mode">none</property>
|
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">VPN</property>
|
|
|
|
</accessibility>
|
|
|
|
<style>
|
|
|
|
<class name="boxed-list" />
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
2010-12-02 16:03:53 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2022-11-04 17:40:24 +05:30
|
|
|
|
2022-01-27 14:52:21 -08:00
|
|
|
<child>
|
|
|
|
<object class="AdwPreferencesGroup">
|
2022-11-04 17:40:24 +05:30
|
|
|
<!-- xxx: Added to avoid confusion with the preceding VPN row -->
|
|
|
|
<property name="title" translatable="yes">Proxy</property>
|
2022-01-27 14:52:21 -08:00
|
|
|
<child>
|
2022-11-04 17:40:24 +05:30
|
|
|
<object class="GtkListBox">
|
|
|
|
<signal name="row-activated" handler="settings_row_activated_cb" swapped="yes"/>
|
|
|
|
<style>
|
|
|
|
<class name="boxed-list" />
|
|
|
|
</style>
|
|
|
|
<child>
|
|
|
|
<object class="CcListRow" id="proxy_row">
|
|
|
|
<property name="title" translatable="yes">Proxy</property>
|
|
|
|
<property name="show-arrow">True</property>
|
|
|
|
<property name="selectable">False</property>
|
|
|
|
<property name="icon-name">preferences-system-network-proxy-symbolic</property>
|
|
|
|
<property name="secondary-label" bind-source="proxy_page" bind-property="state-text" bind-flags="sync-create"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
2022-01-27 14:52:21 -08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2022-11-04 17:40:24 +05:30
|
|
|
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<child>
|
|
|
|
<object class="CcNetProxyPage" id="proxy_page">
|
|
|
|
<signal name="notify::modified" handler="network_proxy_modified_cb" swapped="yes"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
2010-12-02 16:03:53 +00:00
|
|
|
</object>
|
2017-07-12 11:08:39 -03:00
|
|
|
</child>
|
|
|
|
</template>
|
2010-12-02 16:03:53 +00:00
|
|
|
</interface>
|