gnome-shell relies on being able to call
gnome-control-center network connect-8021x-wifi <DEVICE> <AP>
This was broken in the big refactoring of the wifi panel
last cycle. Bring it back.
Instead of manually handling button release events on the
treeview, use activatable cell renderers for the ssid text
and for the arrow, and connect to activate signals for them.
We use cell area focus-sibling technology to make the keynav
in the list just have focus locations for the ssid and the
arrow.
This makes the details pages reachable by keynav, which was
not the case before.
The mode cell renderer had a property named 'mode', which
clashed with the GtkCellRenderer property of that name, which
confused the treeview keynav.
Rename the new property to ap-mode.
Remove the reference to the new longer existing viewport_list
widget, and be more careful about getting a NMRemoteSettings
object when calculating the last used time.
We don't show it for wifi details, and it is causing ugly warnings
from the setting code.
At the same time, make all selectable labels on the wired page
focusable as well, to be consistent with wifi.
Showing it whenever we have a saved connection goes wrong for
all items where we have both an ap and a saved connection.
Also, use the same details page for out-of-range saved connections.
Copy the 'Last used' item for non-active, in-range access
points.
This is another step towards using the same details page
for all aps and connections.
When showing the details for an in-range, but not active access
point, we were just always showing details for the currently
active connection. This commit starts to sort things apart.
'Connect to hidden' is not really an access point.
Update the function name to reflect that. Also, update
the translator comment to be more to the point.
The code was assuming that 'editing' always means editing the
currently active connection. With the new design of the wifi
details tabs, that is no longer the case, we want to be able
to edit non-active connections. This commit makes it so.
Make the details pages for in-range and out-of-range aps more
similar, by adding 'Forget Network' and 'Settings...' buttons
to both.
This is a step towards using the same details page for all
aps and connections.
When we find a saved connection among the access points already
in the list, we forget to mark it as saved, so the arrow to go
to the details page is not shown.