Commit graph

19 commits

Author SHA1 Message Date
Automeris naranja
31927efeac wifi-connection-row: Minor tweaks
- Make all buttons as suffix widgets,
which makes unnecessary to wrap them in
a GtkBox that is set as a suffix widget

- Don't set a margin end to the Wi-Fi
icon[1]

- Remove halign from the buttons, because
it isn't necessary

- Remove halign from the buttons, as it
isn't necessary because halign works only
if hexpand is set to TRUE

- Add margin end to the spinner so it
doesn't appear misaligned with the other
widgets at the end of the row

[1] In latest mockups, the margin between
the Wi-Fi icon and network name is also
shorter: cfb7cae4a9
2024-02-26 16:02:23 +00:00
Automeris naranja
7fd77c339d wifi-connection-row: Tweak tooltips
- Rename "Show QR Code" to "Share Network",
since the latter is is the proper name of
this action

- Change "Options" to "Network Options" to
provide more context

- Add tooltip to the forget network button

- Removes a11y labels from buttons that already
have tooltips, since the former is redundant
due to the fact that the screen reader reads
tooltips
2024-01-23 10:55:23 +00:00
Automeris naranja
85d802c356 wifi-connection-row: Add a11y label to the forget network button 2023-11-02 11:22:18 +01:00
Automeris naranja
ca740fd9e4 wifi-connection-row: Make the forget network button to show only an icon
This button has the icon_name and the label properties simultaneously.
These properties are conflicting each other, making the button to show only a label.

This change removes the label, so the button will only show an icon.

Reference: https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/network/wifi-settings.png

Partially fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2661
2023-11-02 11:19:46 +01:00
Hari Rana
1c62c25907 wifi-connection-row: Add tooltip texts
Co-authored-by: Automeris naranja <104251-automerisnaranja@users.noreply.gitlab.gnome.org>
2023-10-23 13:31:32 +00:00
Fareed
eccc4d304e wi-fi: Add delete icon in saved connections list
Each connection now has a delete icon to forget a saved connection.
List can still be generated to include the checkbox to forget multiple.
Follows mockups for wi-fi panel. Add translation comments.
2023-06-07 22:58:37 +00:00
Hendrik Müller
add2f0d2f7 wifi: Add QR code to share Wi-Fi networks
Many devices are able to scan a specifically formatted QR code to
connect to a wifi network.
To make sharing of wifi connections easier, it would be helpful to
display such a QR code in the wifi settings.

A button is added to the wifi connection row. This row is shown in
the general wifi settings panel, as well as in the "Known Wi-Fi Network"
dialog. Clicking the button opens an additional dialog, which shows the
QR code.
2023-02-14 19:11:07 -03:00
Maximiliano Sandoval R
42f64f197f Make buttons in actions rows and header flat 2022-06-01 02:17:13 +00:00
Felipe Borges
37ee555c44 network: Show configuration button only for active/connecting connections
In commit c7bd442839 we started to
show the configuration button for all rows, which fixes the original
issue of not being able to tweak a connection during association but
also introduces a regression of not having connection data to show
for other connections in the list. This way, the configuration
button will fail to create a net_connection_editor interface for
rows that aren't associated with an active connection.

Let's only show the configuration button when the NMActiveConnectionState
is either NM_ACTIVE_CONNECTION_STATE_ACTIVATING or
NM_ACTIVE_CONNECTION_STATE_ACTIVATED.

Fixes #1494
2022-02-10 15:05:08 +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
Felipe Borges
c7bd442839 network: Show configuration button during wifi association
While connecting to a Wifi network g-c-c would hide the button that
launches the connection preferences dialog. This is inconvenient
when network manager keeps on attempting to reconnect to a
misconfigured network.

These changes rework the logic of the buttons by always presenting
the configuration button and toggling the visibility of the spinner
accordingly.

Fixes #493
2021-08-30 13:13:40 +00:00
Mohammed Sadiq
4b9dd7d54d wifi-connection-row: Fix alignment of wifi name 2020-12-22 19:08:58 +05:30
Robert Ancell
64a2e54ec6 network: Update design of the WiFi list.
https://gitlab.gnome.org/Teams/Design/settings-mockups/raw/master/wifi/wifi-list.png

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1185
2020-11-16 17:01:16 +13:00
Robert Ancell
3beaa9d158 network: Move signals handlers into .ui files 2020-11-11 20:13:46 +00:00
Robert Ancell
53f9249b83 network: Remove unused GtkBuilder IDs 2019-10-22 20:11:45 +00:00
p3732
ed8561ca34 wifi: Reorder icons displayed for wifi access points
Change the layout of the wifi access point rows according to
the new mockups.

Fixes #554
2019-06-16 01:01:36 +00:00
Veerasamy Sevagen
fb130c06d0 panels/network/cc-wifi-connection-row.ui:Setting Connection/SSID as non-translatable.
Set to non-translatable as it is just a placeholder.

This change has been requested by Benjamin Berg(@bberg).

Issue has not been created for this but it was stated in issue#397
2019-03-31 23:22:06 +00:00
Benjamin Berg
d126b3db5e wifi: Hook up new connection list widget 2019-01-07 15:29:23 +01:00
Benjamin Berg
0fb86c82d2 wifi: Add new CcWifiConnectionRow widget for the AP list
This is in preparation to optimize list to not be rebuild completely for
every change.
2019-01-07 15:29:20 +01:00