Commit graph

1013 commits

Author SHA1 Message Date
Robert Ancell
93b14a4339 panel: Move shared GCancellable code into panel class
Make the panel class provide a cancellable that will be cancelled when the panel
is destroyed. Panel implementations can use this and not have to mangage the
cancellable themselves. Consolidate cases where panels had multiple cancellables
that were all being used for this behaviour.
2020-02-03 09:36:24 +13:00
Georges Basile Stavracas Neto
4bef33781c network: Fix ws_wpa_psk_new call
Introduced by d168eee5cd.
2020-02-02 12:24:23 -03:00
Robert Ancell
4897c6d8e3 network: Handle case where GtkComboBox has no active iter 2020-01-31 14:13:15 +00:00
Robert Ancell
6bb77ec1e2 network: Fix GError being overwritten 2020-01-31 14:13:15 +00:00
Robert Ancell
099b58a8c9 network: Remove constant password_flags_name property 2020-01-31 14:13:15 +00:00
Robert Ancell
a99cafbdb4 network: Simplify EapMethodSimple constructor
We don't need an enum and a lookup table, just send the string directly.
2020-01-31 14:13:15 +00:00
Robert Ancell
37f5c37261 network: Simplify autheap_allowed logic
Instead of checking later if this should be enabled, only enable it for methods
that can do it.
2020-01-31 14:13:15 +00:00
Robert Ancell
d168eee5cd network: Remove WirelessSecurity constructor parameters that were never changed 2020-01-31 14:13:15 +00:00
Robert Ancell
4bc58cac44 network: Remove EAP constructor parameters that were never changed 2020-01-31 14:13:15 +00:00
Robert Ancell
7d9d4d4289 network: Convert WirelessSecurity objects into GtkTemplates 2020-01-31 14:13:15 +00:00
Robert Ancell
d4ec8a570b network: Convert WirelessSecurity into an interface 2020-01-31 14:13:15 +00:00
Robert Ancell
b964283fb0 network: Refactor how username/passwords are retained when switching EAP methods
This was previously done by storing the value inside the WirelessSecurity class.
This stopped the subclasses from becoming Gtk widgets.

The "always_ask" code was removed as it didn't seem to actually retain when
switching. This might need to be fixed at a later time.
2020-01-31 14:13:15 +00:00
Robert Ancell
7f4eaf5eec network: Remove unused parameter 2020-01-31 14:13:15 +00:00
Robert Ancell
cec32ae47e network: Fix type in EAPMethod interface 2020-01-31 14:13:15 +00:00
David Bauer
da0c45f2ab ce-connection-row: add SAE support 2020-01-27 23:11:30 +00:00
David Bauer
97f6c8f53c ce-page-details: add SAE support 2020-01-27 23:11:30 +00:00
David Bauer
2e79c53194 ce-page-security: add SAE support 2020-01-27 23:11:30 +00:00
Philip Withnall
ef21229a5b network: Tweak wording of metered data checkbox in connection dialog
Make it clearer in two ways:
 • Explicitly mention ‘metered data’, as that’s a commonly used phrase.
 • Explicitly mention automatic software updates as being disabled on
   metered connections, to make the implications of this checkbox a
   little clearer.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: https://gitlab.gnome.org/GNOME/gnome-software/merge_requests/339
2020-01-08 15:46:22 +00:00
Robert Ancell
96b1052bcd network: Remove markup from translatable strings 2020-01-06 16:57:43 +00:00
Georges Basile Stavracas Neto
86a8ecb705 panel-list: Temporarily move the Network panel to below Wi-Fi
This is until we merge the Network, Wi-Fi, and Mobile Broadband
panels.
2020-01-06 15:15:30 +00:00
Robert Ancell
4c6208dc66 network: Fix memory leaks using g_find_program_in_path
Added in d61d13d
2019-12-18 00:31:54 +00:00
Carlos Garnacho
2ff526ecfb network: Update VPN empty label status after removing VPN connection
Being the VPN list actually a collection of listboxes, this function
ensures it looks alright in other places. However the case of removing
all VPN connections till we're back empty was missed.
2019-12-12 23:06:45 +01:00
Carlos Garnacho
1ce1fbe3c8 network: Make list in "new VPN" dialog fill up space
The list holding the different supported VPN types is currently relying
on its content in order to expand horizontally. This comes out odd
if the list is mostly empty or has no specially wide content, as it is
then centered in the dialog.

Have it fill the available space, and align vertically on top.
2019-12-04 20:30:49 +01:00
Carlos Garnacho
23303245af network: Keep a ref on NetDeviceEthernet while a edition dialog is open
Otherwise, invoking other panel (eg. through shell search, or CLI) and
closing the dialog will result in a crash, as the NetDeviceEthernet
object does no longer exist.
2019-11-29 11:22:56 +01:00
Robert Ancell
c37ab4032b network: Fix warnings after removing a VPN
This is due to the object being accessed after being unreffed - connect the signal
so it is removed when the object is finalized.

This regression was introduced in 93a269f8 when switching to GtkTemplate.
2019-11-28 13:21:11 +00:00
Robert Ancell
acc8aff5d0 network: Remove certificate helper function
It didn't really save any code.
2019-11-27 22:05:46 +00:00
Robert Ancell
63c3f3e0a4 network: Add a changed signal to EAPMethod
This stops us emitting the signal on the parent object directly
2019-11-27 22:05:46 +00:00
Robert Ancell
e6b91c7a5d network: Remove wired checks from dynamic WEP code
This widget is only used for wireless networks.
2019-11-27 22:05:46 +00:00
Robert Ancell
3657a4e602 network: Simplify dynamic WEP and EAP auth widgets 2019-11-27 22:05:46 +00:00
Robert Ancell
bd7491bc5c network: Move common code to common location
Remove duplicate header file for these functions
2019-11-27 22:05:46 +00:00
Robert Ancell
f63ac35b41 network: Remove unnecessary nm-default.h 2019-11-27 22:05:46 +00:00
Robert Ancell
8bcc2f811a network: Move helper function with other helper code 2019-11-27 22:05:46 +00:00
Robert Ancell
f75affbfe0 network: Copy shared functions into the two cases it is used
This does increase duplication, but should be reduced in following refactoring.
2019-11-27 22:05:46 +00:00
Robert Ancell
d689224941 network: Simplify helper function
This will allow us to remove ws_802_1x_fill_connection in a following commit.
2019-11-27 22:05:46 +00:00
Robert Ancell
c8231a5099 network: Simplify TTLS inner auth widgets 2019-11-27 22:05:46 +00:00
Robert Ancell
90c190dd5c network: Simplify PEAP inner auth widgets 2019-11-27 22:05:46 +00:00
Robert Ancell
e450543a6a network: Simplify FAST inner auth widgets 2019-11-27 22:05:46 +00:00
Robert Ancell
20097e2cbe network: Simplify helper function
The function took internal details of the few classes that were using it.
2019-11-27 22:05:46 +00:00
Robert Ancell
748a508640 network: Make EAP widgets not visible by default
This makes them more consistent with other widgets.
2019-11-27 22:05:46 +00:00
Robert Ancell
737e5829d6 network: Move private defines out of public header 2019-11-27 22:05:46 +00:00
Robert Ancell
f806854560 network: Remove a helper function
This makes more sense to be in the two cases it is used. It should be refactored away in the future.
2019-11-27 22:05:46 +00:00
Robert Ancell
131e89e690 network: Split up a combined setter into multiple methods 2019-11-27 22:05:46 +00:00
Robert Ancell
e5ae62a6a3 network: Convert WirelessSecurity property to a virtual method 2019-11-27 22:05:46 +00:00
Robert Ancell
125d971ebe network: Replace a callback with a signal 2019-11-27 22:05:46 +00:00
Robert Ancell
3d06da2d30 network: Convert WirelessSecurity into a GObject 2019-11-27 22:05:46 +00:00
Robert Ancell
4b182dd7c0 network: Move GtkBuilder code from WirelessSecurity to subclasses 2019-11-27 22:05:46 +00:00
Robert Ancell
0f1cff9130 network: Convert EAPMethod classes to GtkTemplates 2019-11-27 22:05:46 +00:00
Robert Ancell
5006342308 network: Convert EAPMethod to an interface and make the subclasses GObjects 2019-11-27 22:05:46 +00:00
Robert Ancell
426896b7a2 network: Move EAPMethod property to a virtual method 2019-11-27 22:05:46 +00:00
Robert Ancell
2e8226a09c network: Move EAPMethod property to a virtual method 2019-11-27 22:05:46 +00:00