Commit graph

39 commits

Author SHA1 Message Date
Georges Basile Stavracas Neto
efbad6eb50 network: Port to GTK4
Boy this was hard.

To ease the pain of porting wireless-security to GTK4, add
a new WsFileChooserButton class that mimics the behavior of
a button that triggers a filechooser, as per the migration
guide suggests.

There were lots of GtkGrids, so the diff is particularly
horrendous. Sorry.

This needs serious testing before landing.
2021-12-14 22:34:21 -03: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
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
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
f63ac35b41 network: Remove unnecessary nm-default.h 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
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
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
e5ae62a6a3 network: Convert WirelessSecurity property to a virtual method 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
0478abe46c network: Remove unused hotspot_compatible property 2019-11-27 22:05:46 +00:00
Robert Ancell
1c2d2ca79b network: Simplify helper 2019-11-27 22:05:46 +00:00
Robert Ancell
08b26a93a7 network: Simplify helper functions 2019-11-27 22:05:46 +00:00
Robert Ancell
69a5b8750b network: Simplify helper function 2019-11-27 22:05:46 +00:00
Robert Ancell
f2111a85f5 network: Simplify helper function 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
f556af6e67 network: Move includes to correct file locations 2019-10-22 20:11:44 +00:00
Robert Ancell
37187db328 network: Remove unused virtual method 2019-10-22 20:11:44 +00:00
Robert Ancell
150e7902e6 network: Refactor widget reference out using virtual 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
823a1dbdaa network: Make public struct private 2019-10-22 20:11:44 +00:00
Robert Ancell
a41ad90671 network: Remove unused field 2019-10-22 20:11:44 +00:00
Robert Ancell
96bd167b77 network: Replace deprecated GtkTable with GtkGrid 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
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
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