Commit graph

21971 commits

Author SHA1 Message Date
Martin Pobaschnig
8c7a286511 network: Remove "close-request" signal handler for VPN file import dialog
When the dialog is closed using ESC key, the "close-request" signal is
emitted in addition to the "response" signal. When the "close-request"
is handled, it frees the memory to which info points. In the "response"
signal handler, the memory of info pointer is accessed again, leading
to a segmentation fault.

Fix this by removing the "close-request" function callback, which shares
the same behaviour as the "response" callback function.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2320
2023-01-30 11:39:11 +00:00
Marco Melorio
9f7fad1aca sound: Add .lowres-icon to CcStreamRow app icons 2023-01-30 10:50:11 +00:00
Marco Melorio
be89d7df88 sound: Format sound-panel.ui 2023-01-30 10:49:09 +00:00
Marco Melorio
29514add66 sound: Remove the nested GtkListBox
See the previous commit for more info.

The UI file is not formatted on purpose to facilitate the review. It
will be reformatted in the next commit.
2023-01-30 10:49:09 +00:00
Marco Melorio
ec9a0052ba sound: Move the "No Devices" rows in different groups
Previously this was problematic because the current layout is a bit
messy. The reasoning is a bit complex, but I'll try to explain below.

Basically the AdwPreferencesGroup has an integrated GtkListBox where the
rows should normally be added to it by declaring AdwPreferencesRow
subclasses as its direct children in the UI file. This is not currently
done in the sound panel and we instead have another GtkListBox as its
direct child, while the "No Devices" row is actually a AdwPreferencesRow
subclass, so we end up with two listboxes with .boxed-list style. The
problem is that we hide the "No Devices" row when there are devices
available, but the internal listbox is still there, so we still see its
shadows.

This commit just separates the "No Devices" row in a separate group so
that we are sure to hide everything correctly.
2023-01-30 10:49:09 +00:00
Nelson Benítez León
8e76abd1f4 shell: fix meson warning
Fixes following Meson warning (given by Meson 0.62.1):

meson.build:33: WARNING: Project targeting '>= 0.57.0' but tried
to use feature deprecated since '0.55.0': ExternalProgram.path.
use ExternalProgram.full_path() instead
2023-01-30 10:04:32 +00:00
Aleksandr Melman
f2e17027c5 Update Russian translation 2023-01-29 22:02:50 +00:00
Ngọc Quân Trần
27200a1be0 Update Vietnamese translation 2023-01-29 07:46:45 +00:00
Hugo Carvalho
db96d2e666 Update Portuguese translation 2023-01-27 23:12:23 +00:00
Jordi Mas
a68e8d55f8 Update Catalan translation 2023-01-27 21:55:31 +01:00
Yuri Chornoivan
6c94e88851 Update Ukrainian translation 2023-01-27 20:18:44 +00:00
Marco Melorio
fc3580f2f2 sound: Fix warning about missing measure in output test
Just measure the label to make GTK not complain about allocating
children without measuring anything. Measuring all the buttons is an
overkill because we expect this widget to have the minimum size
overwritten by CSS either way.
2023-01-27 17:46:58 +00:00
Dylan Van Assche
571a69d36e
network: fix tabs/spaces mixing
Some functions were using tabs instead of spaces, unify the file to use spaces everywhere.
2023-01-27 18:39:19 +01:00
Dylan Van Assche
9b08433599
network: add missing cancellable
Add missing GCancellables to resolve the FIXME statements and
avoid possible crashes if the properties in NetConnectionEditor
outlive themselves.
2023-01-27 18:39:12 +01:00
Dylan Van Assche
3c4939bdbd
network: reapply connection on device
Changing an active connection applies the changes onto the
NetworkManager connection, but not on the device. This is because
NetworkManager clones the connection when it is applied on a device.
This behavior is expected and documented in the NetworkManager
documentation [1]. To effectively apply the connection changes onto a
device, a reapply operation must be performed. This will make NetworkManager
apply the new connection onto the active device without having to
disable and re-enable the device.

Perform this reapply operation when the Apply button is pressed in the
Connection Editor so the changes effectively propagate to the network
device.

[1] https://networkmanager.dev/docs/api/1.32.10/gdbus-org.freedesktop.NetworkManager.Device.html#gdbus-method-org-freedesktop-NetworkManager-Device.Reapply
2023-01-27 18:39:07 +01:00
Hugo Carvalho
e5e486c708 Update Portuguese translation 2023-01-27 15:39:30 +00:00
Yosef Or Boczko
426766bad7 Update Hebrew translation 2023-01-27 09:02:00 +00:00
Jordi Mas
7b050d13e4 Update Catalan translation 2023-01-26 21:29:22 +01:00
Mohammed Sadiq
717cc3e0fc log: Show logs from Bluetooth panel
Logs from Bluetooth panel have "Bluetooth" as G_LOG_DOMAIN.
Show them by default on -v
2023-01-25 09:55:34 +00:00
Mohammed Sadiq
8857a6b2e6 build: Update G_LOG_DOMAIN
When run with -vvv, we log domains prefixed with cc- by default.
So set G_LOG_DOMAIN appropriately so that logs are shown when
run in verbose mode.
2023-01-25 09:55:34 +00:00
Bastien Nocera
11ae5d11d1 background: Remove unused thumbnail factory 2023-01-25 09:54:10 +00:00
Yosef Or Boczko
1f5c632b2e Update Hebrew translation 2023-01-25 07:33:48 +00:00
Sabri Ünal
230ccb9c49 Update Turkish translation 2023-01-24 21:51:07 +00:00
Asier Sarasua Garmendia
53ba3580f3 Update Basque translation 2023-01-24 20:42:45 +00:00
Asier Sarasua Garmendia
a046ce8eba Update Basque translation 2023-01-24 19:43:16 +00:00
Daniel Mustieles
b3537654dc Update Spanish translation 2023-01-24 11:37:29 +00:00
Vasil Pupkin
26d7bbe914 Update Belarusian translation 2023-01-23 22:39:37 +00:00
Ekaterine Papava
3ca09ab5b4 Update Georgian translation 2023-01-23 19:51:17 +00:00
Anders Jonsson
53d5fb4a6e Update POTFILES.in 2023-01-23 15:57:35 +01:00
Jake Dane
37a579b6b0 Replace "application" with "app"
This is part of an initiative to use "app" instead of "applications",
see: https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/123

Redo of !1539 that was closed by a ghosting user.

Replaces "application" with "app" in user facing strings in these
panels:

- applications
- camera, location, microphone
- default-apps
- multitasking
- notifications
- removable-media
- search
- usage
- user-accounts

Fixes: #2208.
2023-01-23 11:10:28 +00:00
Bastien Nocera
727a88a3bd shell: Let libX11 initialise threads itself
Require a version of libX11 new enough that it will initialise threads
support itself.

See afcdb6fb00
2023-01-23 11:04:36 +00:00
Hari Rana
b1c14df48b user: Remove duplicate group property 2023-01-23 11:03:50 +00:00
Georges Basile Stavracas Neto
f975477928 Revert "doap: Indicate that I'm also a "General" maintainer"
As requested, this reverts commit 94c1c64a44 too.
2023-01-23 07:56:34 -03:00
Georges Basile Stavracas Neto
b6d683a565 Revert "doap: Remove myself from this list"
> Ride the wind of a brand new day
> High where mountain's stand
> Found my hope and pride again
> Rebirth of a man
2023-01-23 07:50:53 -03:00
Sabri Ünal
9729d1dcb9 Update Turkish translation 2023-01-22 19:55:40 +00:00
Ekaterine Papava
6c96b8ef63 Update Georgian translation 2023-01-20 16:19:08 +00:00
Bastien Nocera
89a3c36714 tests: Fix possible race in test_connection_multi_add_activate()
Wait for the "state" property to change as well as the "state-reason".
We only update the UI when the former arrives, but the test was working
correctly on faster machines, making it difficult to pinpoint.

Closes: #1768
2023-01-18 16:56:53 +01:00
Felipe Borges
94c1c64a44 doap: Indicate that I'm also a "General" maintainer
With 07d8abc1d5 I am now the most-active maintainer left, so I'd like to
make sure that I am *seen* when important discussions happen.

While this shouldn't make any difference in practice, from my past experience,
I will be left with the responsibility of maintaining old-stable branches and
working on fixing issues introduced by now-inactive contributors. For this
reason, I think I should have a say on most of the non-trivial code that gets
merged.
2023-01-18 12:24:41 +01:00
sunflowerskater
82e873f9cc bluetooth: Tweak AdwStatusPage design
Some AdwStatusPage changes to follow HIG:

- Apply .suggested-action style class to the button
- Ditch period from the description

- https://developer.gnome.org/hig/patterns/controls/buttons.html
- https://developer.gnome.org/hig/guidelines/writing-style.html
2023-01-18 11:56:51 +01:00
Fabio Tomat
4f33ed7743 Update Friulian translation 2023-01-17 20:32:49 +00:00
Georges Basile Stavracas Neto
07d8abc1d5 doap: Remove myself from this list
Hopefully a better steward will show up
2023-01-17 13:48:27 -03:00
Christian Glombek
fcc092430f network: Mark imported VPN conn as private to user, and non-autoconnect 2023-01-16 20:35:02 +00:00
Christian Glombek
475faaf26b network: Add support for WireGuard (GNOME/gnome-control-center#982)
Adds support for managing WireGuard VPN connections:

- Listing WireGuard connections as VPN connections
- Toggling connection state
- Creating, updating and deleting WireGuard connections
- Creating, updating and deleting WireGuard peers
- Importing WireGuard config files

Co-authored-by: Nathan-J. Hirschauer <nathanhi@deepserve.info>
2023-01-16 20:35:02 +00:00
Marco Melorio
8dbf562276 sound: Remove stray character in UI file 2023-01-16 20:53:57 +01:00
Marco Melorio
ea0e2cf308 sound: Remove modelines at the top of the files
They are not even correct and make GNOME Builder to use 8 space
identation by default.
2023-01-16 20:53:56 +01:00
Marco Melorio
866b08b4e8 sound: Hide controls when there are no devices
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1221
and https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1575.
2023-01-16 20:53:15 +01:00
Marco Melorio
ba2a71fb44 sound: Cleanup and reorganize variables in CcSoundPanel
Remove unused ones and keep the same order as the UI hierarchy.
2023-01-16 20:52:14 +01:00
Marco Melorio
9e85ff5547 sound: Clamp level bars to avoid overflowing
Apparently the level value is not clamped by pulseaudio/gvc, so the
level bar can overflow when the value is greater than 1.
2023-01-16 20:51:12 +01:00
Marco Melorio
b3d99f281a sound: Add a "None" option to the alert chooser
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2251.
2023-01-16 19:43:53 +00:00
Marco Melorio
98c8a7787c sound: Move alert chooser to a separate window 2023-01-16 19:43:53 +00:00