Commit graph

37 commits

Author SHA1 Message Date
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
4bc58cac44 network: Remove EAP constructor parameters that were never changed 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
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
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
c8231a5099 network: Simplify TTLS 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
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
Robert Ancell
113bead879 network: Move GtkBuilder code from EAPMethod to subclasses 2019-11-27 22:05:46 +00:00
Robert Ancell
b936955ff3 network: Access widgets via a virtual method, not the GtkBuilder IDs 2019-11-27 22:05:46 +00:00
Robert Ancell
6d35ec3160 network: Fix up header includes 2019-11-27 22:05:46 +00:00
Robert Ancell
6ab75da5c6 network: Use g_clear_pointer 2019-11-06 10:16:20 +13:00
Robert Ancell
708b1fdaf7 network: Use self variable name consistently 2019-10-22 20:11:45 +00:00
Robert Ancell
8b6e3fb736 network: Store widgets inside objects
This is a step towards replacing GtkBuilder with GtkTemplate
2019-10-22 20:11:45 +00:00
Robert Ancell
b331d75df5 network: Rename widget IDs to standard names 2019-10-22 20:11:45 +00:00
Robert Ancell
879542d92b network: Merge duplicate signal handlers 2019-10-22 20:11:45 +00:00
Robert Ancell
54f8fce47f network: Connect signals in swapped form 2019-10-22 20:11:44 +00:00
Robert Ancell
8a3da8b36d network: Remove shared callback and replace with a method 2019-10-22 20:11:44 +00:00
Robert Ancell
4955371660 network: Pass widget references rather than relying on names
The existing code relied on using GtkBuilder, which will no longer work when we
switch to GtkTemplate.
2019-10-22 20:11:44 +00:00
Robert Ancell
84c53b01c5 network: Remove unused GtkNotebooks
The security widgets were inside GtkNotebooks, but only ever had one page and
tabs hidden. So they weren't doing anything.
2019-10-22 20:11:44 +00:00
Robert Ancell
e70610fe74 network: Use g_autoptr for unref code 2019-09-13 14:20:50 +12:00
Robert Ancell
de84f7e344 network: Use g_autofree for strings 2019-09-13 14:20:50 +12:00
Robert Ancell
01190db349 network: Use g_autoptr for GError handling 2019-09-13 14:20:50 +12:00
Markus Theil
04f3264c6a network/eap-method-ttls: add domain match
As it is often not sufficient to only check against
a set of known CA certificates, add a domain suffix
check for Wi-Fi connections.

Signed-off-by: Markus Theil <theil.markus@gmail.com>
2019-07-15 15:02:32 +12:00
Bastien Nocera
4663ba2fac network: Fix crash opening "Hidden network" dialogue
Both the Network panel and libnma expect UI resources in the
same location, which will cause problems when the Network panel loads
its own version that doesn't quite match up to the code used in libnma.

This fixes a crash when nma_wifi_dialog_new_for_hidden() is called and
libnma expects a domain widget to be present, which it isn't in our
version of the UI files.

https://bugzilla.gnome.org/show_bug.cgi?id=785099
2018-03-12 14:39:10 +01:00
Bastien Nocera
0470c040b1 network: Update wireless-security from network-manager-applet 2017-03-13 18:56:57 +01:00
Bastien Nocera
92b044ba7f network: Update wireless-security from network-manager-applet 2016-06-07 13:11:07 +02:00
Bastien Nocera
9183d34947 network: Port to libnm 1.2
We also remove support for WiMAX (now unsupported by NetworkManager),
and InfiniBand (Enterprise feature), and the use of
the deprecated NM_SETTING_WIRELESS_SEC property.

With help from network-manager-applet patches by Jiří Klimeš and
Dan Winship.

https://bugzilla.gnome.org/show_bug.cgi?id=765910
2016-05-27 18:23:33 +02:00
Bastien Nocera
1fe3d1fe1c network: Remove "..." from dialogue titles
https://bugzilla.gnome.org/show_bug.cgi?id=696845
2014-07-24 13:19:09 +02:00
Matthias Clasen
e5cc7d8011 network: Break out wifi details code and add editing support
This code is fairly independent of the rest, and we don't want
net-device-wifi.c to become too massive and unmaintainable.

The code in connection-editor/ is fairly similar to
nm-connection-editor, with some simplification because we
currently only edit wireless connections.

The code in wireless-security/ is almost a straight copy
of the same code in nm-connection-editor, with some changes
to the .ui files to make them fit better in the new design.
2013-01-30 13:05:33 -05:00