2011-03-12 14:27:22 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2010-12-02 16:03:53 +00:00
|
|
|
<interface>
|
2012-02-08 13:46:57 +00:00
|
|
|
<!-- interface-requires gtk+ 3.0 -->
|
2011-03-12 14:27:22 -05:00
|
|
|
<object class="GtkAdjustment" id="adjustment_proxy_port_ftp">
|
|
|
|
<property name="upper">65535</property>
|
|
|
|
<property name="step_increment">1</property>
|
|
|
|
</object>
|
|
|
|
<object class="GtkAdjustment" id="adjustment_proxy_port_http">
|
|
|
|
<property name="upper">65535</property>
|
|
|
|
<property name="step_increment">1</property>
|
|
|
|
</object>
|
|
|
|
<object class="GtkAdjustment" id="adjustment_proxy_port_https">
|
|
|
|
<property name="upper">65535</property>
|
|
|
|
<property name="step_increment">1</property>
|
|
|
|
</object>
|
|
|
|
<object class="GtkAdjustment" id="adjustment_proxy_port_socks">
|
|
|
|
<property name="upper">65535</property>
|
|
|
|
<property name="step_increment">1</property>
|
2010-12-02 16:03:53 +00:00
|
|
|
</object>
|
|
|
|
<object class="GtkListStore" id="liststore_devices">
|
|
|
|
<columns>
|
|
|
|
<!-- column-name icon -->
|
2010-12-14 10:23:26 +00:00
|
|
|
<column type="gchararray"/>
|
2011-03-16 17:27:24 +00:00
|
|
|
<!-- column-name object -->
|
|
|
|
<column type="GObject"/>
|
2010-12-02 16:03:53 +00:00
|
|
|
</columns>
|
2012-06-28 12:17:18 +01:00
|
|
|
</object>
|
2017-07-12 11:08:39 -03:00
|
|
|
<template class="CcNetworkPanel" parent="CcPanel">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
2017-07-16 14:55:32 -03:00
|
|
|
|
2017-07-12 11:08:39 -03:00
|
|
|
<child>
|
2017-07-16 14:55:32 -03:00
|
|
|
<object class="GtkScrolledWindow">
|
2010-12-02 16:03:53 +00:00
|
|
|
<property name="visible">True</property>
|
2011-03-12 14:27:22 -05:00
|
|
|
<property name="can_focus">False</property>
|
2017-07-16 14:55:32 -03:00
|
|
|
<property name="hscrollbar_policy">never</property>
|
2010-12-02 16:03:53 +00:00
|
|
|
<child>
|
2017-07-16 14:55:32 -03:00
|
|
|
<object class="GtkViewport">
|
2010-12-02 16:03:53 +00:00
|
|
|
<property name="visible">True</property>
|
2011-03-12 14:27:22 -05:00
|
|
|
<property name="can_focus">False</property>
|
2017-07-16 14:55:32 -03:00
|
|
|
<property name="shadow_type">none</property>
|
2010-12-02 16:03:53 +00:00
|
|
|
<child>
|
2019-01-27 17:41:06 +01:00
|
|
|
<object class="HdyColumn">
|
2010-12-02 16:03:53 +00:00
|
|
|
<property name="visible">True</property>
|
2019-01-27 17:41:06 +01:00
|
|
|
<property name="maximum_width">600</property>
|
|
|
|
<property name="linear_growth_width">400</property>
|
|
|
|
<property name="margin_top">32</property>
|
|
|
|
<property name="margin_bottom">32</property>
|
|
|
|
<property name="margin_start">12</property>
|
|
|
|
<property name="margin_end">12</property>
|
2017-07-21 15:01:38 -03:00
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="hexpand">True</property>
|
2017-07-16 14:55:32 -03:00
|
|
|
<property name="spacing">12</property>
|
network: Add connections and devices to different stack
The current Network panel is composed of a single stack and
a treeview to select the currently visible stack page. Each
stack page represents a connection or device.
The new Network panel, however, has none of the concept of
selectable pages. In the new layout, all connections and
devices appear all at once in a more compact and simpler
fashion.
This commit, then, starts moving towards a unified, pageless
panel by adding all the connections and devices to different
stacks. These different stacks are transient to the network
object, and are added at appropriate boxes, giving the panel
a unified layout.
This has some serious implications in the design of the
current code. Most of the code removals were related to the
treeview and different pages handling. No more tree model
madness is present, and the devices are now stored in a
plain simple GPtrArray.
After this patch, NetObject:add_to_stack isn't a good code
design choice anymore. This will be addressed in a future
patch.
https://bugzilla.gnome.org/show_bug.cgi?id=785581
2017-07-15 21:24:07 -03:00
|
|
|
<property name="orientation">vertical</property>
|
2019-01-27 17:41:06 +01:00
|
|
|
<property name="valign">start</property>
|
2017-07-16 14:55:32 -03:00
|
|
|
|
|
|
|
<!-- Each GtkBox below will contain GtkStacks from the NetDevices -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
2017-07-21 11:52:57 -03:00
|
|
|
<property name="spacing">24</property>
|
2017-07-16 14:55:32 -03:00
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="box_wired">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="orientation">vertical</property>
|
2019-06-14 11:13:09 +01:00
|
|
|
<property name="spacing">24</property>
|
2017-07-16 14:55:32 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
2017-08-22 23:04:52 -03:00
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="container_simple">
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<property name="spacing">12</property>
|
|
|
|
|
2019-04-23 19:29:41 +02:00
|
|
|
<!-- "Other Devices" header -->
|
2017-08-22 23:04:52 -03:00
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="xalign">0.0</property>
|
2019-04-23 19:29:41 +02:00
|
|
|
<property name="label" translatable="yes">Other Devices</property>
|
2017-08-22 23:04:52 -03:00
|
|
|
<attributes>
|
|
|
|
<attribute name="weight" value="bold" />
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkFrame">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="box_simple">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2017-07-16 14:55:32 -03:00
|
|
|
<child>
|
2017-07-21 14:39:27 -03:00
|
|
|
<object class="GtkBox">
|
2017-07-16 14:55:32 -03:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="orientation">vertical</property>
|
2017-07-21 14:39:27 -03:00
|
|
|
<property name="spacing">6</property>
|
2017-07-21 11:52:57 -03:00
|
|
|
|
|
|
|
<!-- VPN header -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="xalign">0.0</property>
|
|
|
|
<property name="label" translatable="yes">VPN</property>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="weight" value="bold" />
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="relief">none</property>
|
|
|
|
<signal name="clicked" handler="create_connection_cb" object="CcNetworkPanel" swapped="no" />
|
|
|
|
<child>
|
|
|
|
<object class="GtkImage">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="icon_name">list-add-symbolic</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2017-07-21 14:39:27 -03:00
|
|
|
<child>
|
|
|
|
<object class="GtkFrame">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="box_vpn">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
|
|
|
|
<!-- "Not set up" row -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkListBox" id="empty_listbox">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="selection_mode">none</property>
|
|
|
|
<child>
|
2019-01-27 18:06:05 +01:00
|
|
|
<object class="HdyActionRow">
|
2017-07-21 14:39:27 -03:00
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="activatable">False</property>
|
2019-01-27 18:06:05 +01:00
|
|
|
<property name="title" translatable="yes">Not set up</property>
|
2017-07-21 14:39:27 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2017-07-16 14:55:32 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="box_proxy">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2010-12-02 16:03:53 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
2017-07-12 11:08:39 -03:00
|
|
|
</child>
|
|
|
|
</template>
|
|
|
|
<object class="GtkSizeGroup" id="sizegroup">
|
2011-03-17 21:43:24 -04:00
|
|
|
</object>
|
2010-12-02 16:03:53 +00:00
|
|
|
</interface>
|