Commit graph

11 commits

Author SHA1 Message Date
Athul Iddya
09d8ab968d network: Validate max length of hotspot SSID
Added validation for maximum length of hotspot SSID, which cannot exceed
32 bytes. As this error might be unintuitive, an error message was also
added below the entry row similar to the password entry row. The error
messages are generic as some characters can require multiple bytes and
mentioning the byte limitation might be too technical.

Fixes #1065
2023-03-23 22:36:00 +00:00
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
Tejal Palwankar
dfd0e38f3b wifi: Fixed plural handling for different languages
Fixes #1463
2021-11-04 09:12:44 +00:00
Felipe Borges
afe1c35c57 network: Indicate the maximum password length accepted for wifi hotspots
The Wifi Hotspot setup dialog will error "Must have a minimum of 8 characters"
for all the situations in which nm_utils_wpa_psk_valid and nm_utils_wep_key_valid
report a given password to be invalid.

The case when this error is most obvious is when you enter a very lengthy password
and the dialog shows the very same error about the minimum password length.

These changes make the dialog account for the Maximum password length as well. It
assumes 16 characters for WEP and 63 characters for WPA/WPA2.
2021-05-07 04:02:51 +00:00
Robert Ancell
2814785ad3 network: Stop using deprecated nm_remote_connection_get_secrets 2021-01-08 07:39:32 +00:00
Robert Ancell
96b1052bcd network: Remove markup from translatable strings 2020-01-06 16:57:43 +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
6ab75da5c6 network: Use g_clear_pointer 2019-11-06 10:16:20 +13:00
Mohammed Sadiq
a049ccc663 wifi: Always reset hotspot network label before updating
As the hotspot dialog is reused, we have to reset the connection label
everytime it’s shown. Otherwise obsolete informations shall be shown
if there isn't any active connection
2019-09-23 18:08:23 +05:30
Mohammed Sadiq
82f13e848a wifi: Set hotspot dialog title in C source
Setting markup within UI file might be bad as some translators
might break those markups.

Setting it in C source allows to exclude the markups from being
translated, and thus to not confuse translators.

642be83798 (note_608677)
2019-09-23 13:35:54 +05:30
Mohammed Sadiq
642be83798 network: Add new hotspot creation dialog 2019-09-17 12:15:11 +00:00