Robert Ancell
fc25e17a9f
network: Replace GtkNotebook with GtkStack
2019-11-06 22:04:15 +13:00
Robert Ancell
d163fb3f22
network: Remove unused GtkNotebooks and pages that are never shown
...
This has the side effect of allowing these pages to be shorter - the hidden
widgets forced the visible widgets to have a minimum height. If the old
behaviour is desired then this requires this to be fixed using a better
method.
2019-11-06 22:02:49 +13:00
Robert Ancell
db16aac28c
network: Remove empty files
2019-11-06 16:41:34 +13:00
Robert Ancell
d46579144e
network: Move GtkBuilder code from CEPage to its subclasses
2019-11-06 16:41:34 +13:00
Robert Ancell
eb4e124b04
network: Get connection editor root widget from a virtual method
2019-11-06 16:36:55 +13:00
Robert Ancell
f5949160c3
network: Move class property inside the two subclasses that use it
2019-11-06 16:36:55 +13:00
Robert Ancell
80a2af7f32
network: Remove unused GCancellable
2019-11-06 16:36:55 +13:00
Robert Ancell
3a86e6f162
network: Convert class property to a virtual method
2019-11-06 16:36:54 +13:00
Robert Ancell
4178b9404b
network: Remove unused signal signatures
2019-11-06 16:36:06 +13:00
Robert Ancell
d327e20a10
network: Replace GObject boilerplate with modern macros
2019-11-06 16:36:06 +13:00
Robert Ancell
0106a4ab90
network: Convert class property to a virtual method
2019-11-06 16:36:06 +13:00
Robert Ancell
413f23ec99
network: Rename virtual method to standard names
2019-11-06 16:33:07 +13:00
Robert Ancell
f335ed420f
network: Move widget code into GtkBuilder
2019-11-06 10:40:23 +13:00
Robert Ancell
39113f6a03
network: Move signals into GtkBuilder files
2019-11-06 10:40:23 +13:00
Robert Ancell
36449d60c7
network: Convert NetDeviceEthernet, NetDeviceBluetooth and NetDeviceMobile to GtkTemplate
...
This means NetObject is now obsolete and can be removed.
There was a GtkSizeGroup that the mobile settings used, but it isn't clear if
this is still relevant. It should be added back later if found to be (this code
is likely to be removed to make way for a dedicated mobile panel).
2019-11-06 10:40:23 +13:00
Robert Ancell
ff042560d6
network: Remove unused sizegroup
2019-11-06 10:40:23 +13:00
Robert Ancell
a75dbf033c
network: Make NetVpn constructor consistent with other constructors
2019-11-06 10:40:23 +13:00
Robert Ancell
93a269f8df
network: Convert NetVpn to GtkTemplate
2019-11-06 10:40:23 +13:00
Robert Ancell
b3e372becd
network: Convert NetProxy to GtkTemplate
...
This whole widget was added to a size group with some elements of the mobile
devices. This seems a mistake, but can be added back later if found to be
necessary.
2019-11-06 10:40:23 +13:00
Robert Ancell
7b01c11840
network: Convert NetDeviceWifi to GtkTemplate
2019-11-06 10:40:23 +13:00
Robert Ancell
7e84af0d6d
network: Remove net_object_emit_changed
...
Turns out nothing was actually listening to it.
2019-11-06 10:40:23 +13:00
Robert Ancell
a39ebd5bda
network: Remove net_object_get/set_title
2019-11-06 10:40:23 +13:00
Robert Ancell
2752f38a72
network: Remove net_object_emit_removed
2019-11-06 10:40:23 +13:00
Robert Ancell
577762b60c
network: Remove NetDevice class
...
We don't need the NetObject/NetDevice class separation anymore
2019-11-06 10:16:40 +13:00
Robert Ancell
1c92cf4844
network: Remove net_device_get_nm_device
2019-11-06 10:16:40 +13:00
Robert Ancell
aba79986a5
network: Use a hash table to map NM device objects to our objects
2019-11-06 10:16:40 +13:00
Robert Ancell
0197654177
network: Move helper functions into panel-common.c
2019-11-06 10:16:40 +13:00
Robert Ancell
1a0b9b628a
network: Call method directly instead of via virtual method
2019-11-06 10:16:40 +13:00
Robert Ancell
50c4c805d4
network: Store VPNs separately to other network devices
...
This simplifies a lot of class checks.
2019-11-06 10:16:40 +13:00
Robert Ancell
51df8ccf15
network: Remove unused enum
2019-11-06 10:16:40 +13:00
Robert Ancell
4e5b7faf23
network: Don't add proxies to the device list - nothing every reads them back
2019-11-06 10:16:40 +13:00
Robert Ancell
a88f1b1bad
network: Use function instead of GObject property getter
2019-11-06 10:16:40 +13:00
Robert Ancell
5244b01326
network: Merge together methods
...
A method was public, and not being used. Simplify the case it's used in.
2019-11-06 10:16:40 +13:00
Robert Ancell
2b3c6ea3e4
network: Don't use refresh virtual method for VPN objects
...
The refresh is only called internally
2019-11-06 10:16:40 +13:00
Robert Ancell
06e38dac90
network: Tidy up use of modem object in NetDeviceMobile
2019-11-06 10:16:40 +13:00
Robert Ancell
6207f84ba2
network: Remove unused code
2019-11-06 10:16:39 +13:00
Robert Ancell
29734b599c
network: Remove net_object_get_client
...
Better handled inside each object.
2019-11-06 10:16:39 +13:00
Robert Ancell
d7e17ca02f
network: Replace method with a helper function.
...
This removes a case where an object was being temporarily created just to use
this mehtod.
2019-11-06 10:16:39 +13:00
Robert Ancell
966cb97d45
network: Remove net_object_get_cancellable
...
Only a few objects need it
2019-11-06 10:16:39 +13:00
Robert Ancell
5e4ca84c4c
network: Use correct type iterating over list
...
The list only contains one type of object.
2019-11-06 10:16:39 +13:00
Robert Ancell
c74d26bf3a
network: Remove NetObject id property
...
This is better handled by comparing objects.
2019-11-06 10:16:39 +13:00
Robert Ancell
696e2c7617
network: Remove unused GObject data
2019-11-06 10:16:39 +13:00
Robert Ancell
0b3ce1e15d
network: Remove net_object_get_panel
...
It was only being used for WiFi devices
2019-11-06 10:16:39 +13:00
Robert Ancell
76de0ce408
network: Simplify net_object_add_to_stack function
...
Except in the WiFi case it was creating a stack with one child.
All the non-WiFi cases had the same logic.
2019-11-06 10:16:39 +13:00
Robert Ancell
8335c088ec
network: Simplify handling bluetooth devices
2019-11-06 10:16:39 +13:00
Robert Ancell
a7e3f314e6
network: Rename NetDeviceSimple to NetDeviceBluetooth
...
It's only being used for bluetooth connections.
2019-11-06 10:16:39 +13:00
Robert Ancell
e90ed2df8a
network: Stop NetDeviceEthernet deriving from NetDeviceSimple
...
It overrode everything anyway.
2019-11-06 10:16:39 +13:00
Robert Ancell
9327a5f4d1
network: Remove unused function
2019-11-06 10:16:20 +13:00
Robert Ancell
d68cb14837
network: Remove unused virtual method
2019-11-06 10:16:20 +13:00
Robert Ancell
0c92c7b461
network: Replace g_object_new with constructors
2019-11-06 10:16:20 +13:00