Compare commits

...

517 Commits

Author SHA1 Message Date
Felipe Borges
ec6ea05266 43.2 2022-12-23 12:11:35 +01:00
Marco Melorio
d0eae9ecdd ci: Disable rotfiles-fuse from flatpak build
It makes the build fail apparently.
2022-12-23 12:11:35 +01:00
Marco Melorio
331b99f7f6 ci: Remove unneeded copying in the flatpak build
This was missing out the `polkit-autogen` file, so the flatpak build was
failing because of that. Fix this by removing the copying phase and use
the correct manifest path directly instead.
2022-12-23 12:11:35 +01:00
Pablo Correa Gómez
0e3f972edf ci: Install setxkbmap needed for tests and upgrade image
Otherwise, any other operation running the tests has the utility missing
2022-12-23 12:11:35 +01:00
Pablo Correa Gómez
36223c4511 ci: Make sure the project is built before running the tests 2022-12-23 12:11:35 +01:00
Michael Catanzaro
0a61ed5bc1 Update rawhide CI image
We need a newer image to get GTK 4.8
2022-12-23 11:59:42 +01:00
TheEvilSkeleton
4597565f6b display: Set underscanning_row as activatable widget 2022-12-22 19:11:13 +01:00
TheEvilSkeleton
fda7e3935f mouse: Set rows as activatable widgets 2022-12-22 19:11:00 +01:00
Benjamin Berg
929aa0ece1 avatar-chooser: Return a proper widget if images cannot be loaded
GTK assumes that a widget will be created for a flow box item. So always
return one instead of falling back to returning NULL. This can primarily
happen if an image loader is missing.
2022-12-22 19:10:35 +01:00
Felipe Borges
9a34175147 info-overview: Update logo when dark-mode changes
Otherwise the logo will only change once the panel gets reloaded.

Fixes #1627
2022-12-22 19:09:55 +01:00
Mohammed Sadiq
4378c8538f display: Allow the night-light error label to wrap
So that it will wrap when needed and fits better on smaller screens
2022-12-22 19:07:58 +01:00
Mohammed Sadiq
9556e0d869 common: Don't Handle list-row switch state manually
This was a hack added for libhandy-0, which is no longer required.
Also, this hack results in the switch not working when gtk animations
are turned off.
2022-12-22 19:07:17 +01:00
Mohammed Sadiq
b4b10c6af5 color: Select first device row only if non-NULL
Otherwise we might read some invalid memory resulting in a crash
2022-12-22 19:06:39 +01:00
Robert Ancell
60dfdc61cc Fix broken link to communication guidelines, by fixing the name of this section 2022-12-22 19:06:03 +01:00
Pablo Correa Gómez
235cadcd0b wwan: wait for apn_list to exist to add SIM providers
This avoids the situation where a duplicate entry is created if
Settings is started with the wwan panel disabled, a previous connection
exists, and the panel is later enabled.

Fixes #1468
2022-12-22 19:05:28 +01:00
Georges Basile Stavracas Neto
47acab2c78 applications: Don't recurse into symlinks when clearing cache
Oh boy... what can I say.

Sadly Builder symlinks to somewhere where we eventually end up in
the home folder. And delete all files.

:(

Pass the FTW_PHYS flag to nftw() so it doesn't follow symlinks.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2153
2022-12-21 18:44:42 +01:00
Aleksandr Melman
ec1217c830 Update Russian translation 2022-12-20 09:29:00 +00:00
Olga Smirnova
bf6cfc91ca Add Interlingue translation 2022-12-13 06:54:52 +00:00
Ekaterine Papava
d63f105a70 Update Georgian translation 2022-12-05 16:32:01 +00:00
Andre Klapper
af77c9cff3 Privacy/Notifications: Sync Lock screen notifications setting string
Fixes #2157
2022-12-02 11:12:02 +01:00
Nart Tlisha
859bd9f5b5 Update Abkhazian translation 2022-12-02 10:08:55 +00:00
Ekaterine Papava
40bd6d6a70 Update Georgian translation 2022-12-01 16:43:18 +00:00
Georges Basile Stavracas Neto
199071c9a9 Revert "panels: firmware-security: Fix displaying incorrect HSI value"
This reverts commit a9daaa8bae.

This commit contains a string change, we need to request a string
freeze break for that first.
2022-12-01 11:28:31 -03:00
Kate Hsuan
a9daaa8bae panels: firmware-security: Fix displaying incorrect HSI value
The fixes include panel and security dialog. The scale of HSI was changed
from 0-3 to 0-5. The corresponding panel and security dialog showed the
correct HSI number greater than 3.

Fix: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2176

Signed-off-by: Kate Hsuan <hpa@redhat.com>
2022-12-01 11:16:33 +00:00
Alynx Zhou
d6d05abeba network: Fix wrong signal of SEA password visibility toggle
Wrong pointer is used because of missing `_swapped`.
2022-12-01 16:27:28 +13:00
Cheng-Chia Tseng
b79bcb592b Update Chinese (Taiwan) translation 2022-11-29 15:56:38 +00:00
Cheng-Chia Tseng
ffd1bf3ab9 Update Chinese (Taiwan) translation 2022-11-29 15:52:48 +00:00
Cheng-Chia Tseng
615a105564 Update Chinese (Taiwan) translation 2022-11-29 13:29:40 +00:00
Aleksandr Melman
57ddc87de2 Update Russian translation 2022-11-28 04:25:41 +00:00
Vasil Pupkin
c0f51fe7f5 Update Belarusian translation 2022-11-28 00:13:20 +00:00
Ekaterine Papava
b20e88a70c Update Georgian translation 2022-11-27 17:46:00 +00:00
Ekaterine Papava
43a958d22d Update Georgian translation 2022-11-27 17:43:48 +00:00
Ekaterine Papava
a3522c1025 Update Georgian translation 2022-11-27 11:44:15 +00:00
Мирослав Николић
23b9a2bbd1 Update Serbian translation 2022-11-20 14:10:03 +00:00
Yuri Chornoivan
ec32fbc7fb Update Ukrainian translation 2022-11-13 22:50:28 +00:00
Dušan Kazik
516662e6b8 Update Slovak translation 2022-11-08 20:02:57 +00:00
Daniel Mustieles
e88a04df16 Update Spanish translation 2022-11-08 17:04:20 +00:00
Quentin PAGÈS
bf24368a7e Update Occitan translation 2022-11-07 19:05:54 +00:00
Nart Tlisha
a3659a27ff Update Abkhazian translation 2022-10-31 09:44:21 +00:00
Sveinn í Felli
c2f335439b Update Icelandic translation 2022-10-25 15:59:36 +00:00
Sveinn í Felli
54e54fae07 Update Icelandic translation 2022-10-25 14:38:02 +00:00
Michael Catanzaro
6c343f1cb0 network: fix crashes in eap-method-simple
When the stored password is missing, we will crash passing NULL to a
non-nullable GTK API function.

Fixes #1905
2022-10-24 12:27:51 +02:00
Barnabás Pőcze
c4d883ebdb object-cache: Avoid use after free of task error
The error should not be touched after passing it to
`g_task_return_error()` as noted by its documentation:

  Note that since the task takes ownership of @error, and since the
  task may be completed before returning from g_task_return_error(),
  you cannot assume that @error is still valid after calling this.

However, previously, the code did try to free error since the
`local_error` was defined with `g_autoptr(GError)`.


(cherry picked from commit f00fd653cb)
2022-10-19 19:27:56 +00:00
Georges Basile Stavracas Neto
61d8c33717 Post-release version bump 2022-10-17 23:03:31 -03:00
Georges Basile Stavracas Neto
cdcdee471b 43.1 2022-10-17 22:58:21 -03:00
Felipe Borges
a9312cdea3 background: Check for bg name before sorting wallpapers
Otherwise a missing <name> tag in an wallpaper XML can couse
Settings to crash.

Fixes #2087
2022-10-17 15:13:34 +00:00
Sveinn í Felli
8fde5a2019 Update Icelandic translation 2022-10-17 11:04:37 +00:00
A S Alam
b766b24a0a Update Punjabi translation 2022-10-17 00:33:35 +00:00
Kaustubh Desale
2538075fd5 Fixes uneven padding in Formats search bar. 2022-10-15 18:32:56 +00:00
Alessandro Bono
3182b7019f net-device-ethernet: Don't check device iface name
If the interface name is wrong we shouldn't add the device in the first
place. The device comes from NM. If the interface name is wrong is a bug
at NM level.
2022-10-12 13:56:19 +02:00
Alessandro Bono
f6fa2fafec net-device-ethernet: Prevent double free
Fixes: ee53bfd8b6
2022-10-12 13:56:19 +02:00
Luciano da Silva Ribas
ee53bfd8b6 network: Fixed Network profiles shown on wrong device
Added missing interface name during network profile creation.

Fixes #353

Fixed issues from code review
2022-10-12 08:43:22 +00:00
Jordi Mas
36cb48ad49 Update Catalan translation 2022-10-09 13:52:45 +02:00
Yaron Shahrabani
97c68b6040 Update Hebrew translation 2022-10-06 13:01:49 +00:00
Nathan Follens
c706bc7752 Update Dutch translation 2022-10-05 18:47:20 +00:00
Christian Kirbach
c6bc8979ed Update German translation (Fixes #56) 2022-10-04 06:37:51 +00:00
Goran Vidović
bf006ab84a Update Croatian translation 2022-10-01 16:42:50 +00:00
Cheng-Chia Tseng
801950a5ba Update Chinese (Taiwan) translation 2022-10-01 07:43:01 +00:00
Nart Tlisha
dc54498426 Update Abkhazian translation 2022-09-29 15:11:50 +00:00
Fabio Tomat
d0e4ff4730 Update Friulian translation 2022-09-28 05:20:32 +00:00
Dušan Kazik
e9ab01a798 Update Slovak translation 2022-09-27 12:57:05 +00:00
Marek Černocký
3c6798c303 Fixed Czech translation 2022-09-26 11:58:07 +02:00
Zurab Kargareteli
b971f4f51b Update Georgian translation 2022-09-24 07:07:49 +00:00
Emin Tufan Çetin
bd59476dc9 Update Turkish translation 2022-09-23 17:15:16 +00:00
Alexander Mikhaylenko
53fd0d69e2 firmware-security: Don't use .view on rows
I'm not sure what the intention was here, but it didn't work. It made rows
white in light variant (same as other rows), but even darker than they were
before in dark.
2022-09-22 15:34:56 +00:00
Felipe Borges
6b076a7765 user-accounts: Disconnect fingerprint reading devices when closing dialog
Otherwise when users close and reopen the window they will face a
“Failed to claim fingerprint device Synoptics Sensors: the device is
already claimed by another process” error message.

Fixes #1983
2022-09-22 14:32:33 +02:00
Lubomir Rintel
ad0db360e2 network: Fix an assertion failure
Entering the Wi-Fi page without connected to a network trips an
assertion failure:

  (gnome-control-center:14943): nm-CRITICAL **: 16:36:16.732: nm_access_point_get_frequency: assertion 'NM_IS_ACCESS_POINT(ap)' failed

  Thread 1 "gnome-control-c" received signal SIGTRAP, Trace/breakpoint trap.
  0x00007ffff7c8ee51 in g_logv () from /lib64/libglib-2.0.so.0
  (gdb) bt
  #0  0x00007ffff7c8ee51 in g_logv () at /lib64/libglib-2.0.so.0
  #1  0x00007ffff7c8f0d3 in g_log () at /lib64/libglib-2.0.so.0
  #2  0x00007ffff63b7b8a in nm_access_point_get_frequency () at /lib64/libnm.so.0
  #3  0x00000000005965b1 in connect_details_page (self=0x4658210) at ../panels/network/connection-editor/ce-page-details.c:264
  #4  0x0000000000597f9e in ce_page_details_new (connection=0xfbde70, device=0xd52360, ap=0x0, editor=0x50a4350) at ../panels/network/connection-editor/ce-page-details.c:570
  #5  0x0000000000593273 in net_connection_editor_set_connection (self=0x50a4350, connection=0x7fffcc096770) at ../panels/network/connection-editor/net-connection-editor.c:522
  #6  0x0000000000593f7d in net_connection_editor_new (connection=0x7fffcc096770, device=0xd52360, ap=0x0, client=0xd3a0c0) at ../panels/network/connection-editor/net-connection-editor.c:790
  #7  0x0000000000582b16 in show_details_for_row (self=0xcc3040, row=0x46587b0, list=0x4273b40) at ../panels/network/net-device-wifi.c:987
  #8  0x00007ffff7d83845 in g_cclosure_marshal_VOID__OBJECTv () at /lib64/libgobject-2.0.so.0
  #9  0x00007ffff7da1b79 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
  #10 0x00007ffff7da1eb8 in g_signal_emit_by_name () at /lib64/libgobject-2.0.so.0
  #11 0x000000000058d41f in on_row_configured_cb (self=0x4273b40, row=0x46587b0) at ../panels/network/cc-wifi-connection-list.c:251
  #12 0x00007ffff7da1b79 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
  #13 0x00007ffff7da1eb8 in g_signal_emit_by_name () at /lib64/libgobject-2.0.so.0
  #14 0x000000000058c4c4 in configure_clicked_cb (self=0x46587b0) at ../panels/network/cc-wifi-connection-row.c:513
  #15 0x00007ffff7da1b79 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
  #16 0x00007ffff7da1cb3 in g_signal_emit () at /lib64/libgobject-2.0.so.0
  ...
2022-09-22 09:22:12 +00:00
Martin
a685ffcb90 Update Slovenian translation 2022-09-20 20:12:03 +00:00
Jordi Mas
e3011bf101 Update Catalan translation 2022-09-20 07:23:29 +02:00
Martin
fa309c3bc6 Update Slovenian translation 2022-09-19 21:25:39 +00:00
Matej Urbančič
997a09e1a9 Update Slovenian translation 2022-09-19 20:16:04 +00:00
Felipe Borges
12bbd3ea0c printers: Set "use-underline" for Authenticate button in Jobs dialog
The label of the button indicates a mnemonic (_Authenticate).

Fixes #2062
2022-09-19 15:01:05 +02:00
Pawan Chitrakar
16aab21e51 Update Nepali translation 2022-09-19 06:16:31 +00:00
Sabri Ünal
25cc63161b Update Turkish translation 2022-09-18 08:16:48 +00:00
Baurzhan Muftakhidinov
334c733e29 Update Kazakh translation 2022-09-18 07:06:45 +00:00
Baurzhan Muftakhidinov
ce68a6aa69 Update Kazakh translation 2022-09-18 06:14:09 +00:00
Matej Urbančič
bfbcc82973 Update Slovenian translation 2022-09-17 21:40:25 +00:00
Bastien Nocera
da7b4db162 power: Don't assert if we can't find the widget for a profile
In some cases, it was possible for a profile to be set (directly, or
through a hold) even though it wasn't supported. Don't assert in those
cases.

Closes: #1504
2022-09-16 11:07:09 +00:00
Goran Vidović
33f762323f Update Croatian translation 2022-09-15 23:10:44 +00:00
Tim Sabsch
0cdce1d79e Update German translation 2022-09-15 19:50:31 +00:00
Georges Basile Stavracas Neto
ad8c39cad7 Post-release version bump 2022-09-15 12:29:28 -03:00
Georges Basile Stavracas Neto
bfe9fd2acf 43.0 2022-09-15 12:24:47 -03:00
Jordi Mas
c278f9b2d0 Update Catalan translation 2022-09-15 11:06:38 +02:00
Danial Behzadi
9313570a96 Update Persian translation 2022-09-14 12:33:02 +00:00
Hugo Carvalho
2fee09378d Update Portuguese translation 2022-09-13 18:53:31 +00:00
Anders Jonsson
03cc8703a5 Update Swedish translation 2022-09-13 16:55:57 +00:00
Sabri Ünal
b15f78a79f Update Turkish translation 2022-09-13 15:05:11 +00:00
Piotr Drąg
bfd1d80d40 Update Polish translation 2022-09-12 17:11:29 +02:00
Jordi Mas
91157e6727 Update Catalan translation 2022-09-12 09:38:29 +02:00
Bruce Cowan
65ef6db534 Update British English translation 2022-09-11 15:19:34 +00:00
Hugo Carvalho
dc6525ed3f Update Portuguese translation 2022-09-11 13:37:40 +00:00
Hugo Carvalho
427f8ecaaa Update Portuguese translation 2022-09-11 13:29:56 +00:00
Jordi Mas
d4703507e6 Update Catalan translation 2022-09-11 14:26:06 +02:00
Yosef Or Boczko
7a1584f245 Update Hebrew translation 2022-09-11 03:48:14 +00:00
Goran Vidović
30539b6efa Update Croatian translation 2022-09-10 22:47:45 +00:00
Andre Klapper
db2c54be6b Fix invalid Vietnamese translation 2022-09-10 16:38:13 +02:00
Alexander Shopov
7075407e7e Update Bulgarian translation 2022-09-10 10:54:07 +00:00
Matej Urbančič
c06878b015 Update Slovenian translation 2022-09-09 20:58:14 +00:00
Quentin PAGÈS
712397e346 Update Occitan translation 2022-09-09 16:38:23 +00:00
Efstathios Iosifidis
ec5e9507ec Update Greek translation 2022-09-09 10:10:52 +00:00
Goran Vidović
f6db2e2202 Update Croatian translation 2022-09-08 23:10:50 +00:00
Goran Vidović
ce105ad5dd Update Croatian translation 2022-09-08 13:00:10 +00:00
Марко Костић
40ddd90342 Update Serbian translation 2022-09-08 00:19:10 +00:00
Christian Kirbach
fa3ba363f6 Update German translation 2022-09-07 19:56:54 +00:00
Goran Vidović
36aaf37b5f Update Croatian translation 2022-09-07 19:01:31 +00:00
Edson Santos
79a10b4eb2 Update Brazilian Portuguese translation 2022-09-07 00:39:33 +00:00
Zurab Kargareteli
5224ed6f1f Update Georgian translation 2022-09-06 16:34:58 +00:00
Aurimas Černius
b1796454cd Updated Lithuanian translation 2022-09-05 22:41:15 +03:00
Sveinn í Felli
00eb46ca52 Update Icelandic translation
(cherry picked from commit 8a3cc50ed6)
2022-09-05 18:04:40 +00:00
Sveinn í Felli
798a2cea79 Update Icelandic translation
(cherry picked from commit 086aaacab2)
2022-09-05 14:56:01 +00:00
Marek Černocký
8aea865e3d Updated Czech translation 2022-09-05 15:18:37 +02:00
Fran Dieguez
bc0b8c7905 Update Galician translation 2022-09-04 22:24:40 +00:00
Goran Vidović
46f4f9cb24 Update Croatian translation 2022-09-04 20:58:41 +00:00
Changwoo Ryu
32beca8646 Update Korean translation 2022-09-04 10:15:07 +00:00
Michael Catanzaro
01d38c54da Prepare 43.rc 2022-09-03 10:56:23 -05:00
Rūdolfs Mazurs
18e715f187 Update Latvian translation 2022-09-03 12:25:27 +00:00
Goran Vidović
31a29e2b68 Update Croatian translation 2022-09-03 12:19:25 +00:00
Balázs Úr
0173e1873c Update Hungarian translation 2022-09-03 00:33:56 +00:00
Marek Černocký
57b0f873c4 Updated Czech translation 2022-09-02 22:10:48 +02:00
Carlos Garnacho
92b784f561 wacom: Use Mutter's input mapping interface to show calibration UI
When the "Automatic" mapping is chosen for a display-attached tablet device,
Mutter is in charge of applying the heuristics to map the tablet device to
its most likely attached display.

When that happens, the Wacom panel does not know better (or anything)
to show the calibration UI than picking a GdkMonitor and hoping for the
best.

To improve this situation, Mutter has been added a D-Bus interface so it
is possible to query it for the output that a tablet device is mapped to.
This commit adds the support for this interface, so that the Wacom panel
does know to pick the right GdkMonitor to fullscreen the calibration UI on.
2022-09-01 23:14:07 +02:00
Sabri Ünal
770d3f3bf1 Update Turkish translation 2022-09-01 15:51:02 +00:00
Asier Sarasua Garmendia
f8527ab5e4 Update Basque translation 2022-08-31 06:58:58 +00:00
Alan Mortensen
7371f6fe0a Update Danish translation 2022-08-30 17:48:05 +00:00
Jiri Grönroos
cb8145f840 Update Finnish translation 2022-08-30 13:42:50 +00:00
Aleksandr Melman
08090c389d Update Russian translation 2022-08-30 12:09:19 +00:00
Kate Hsuan
ac74cf695c firmware-security: hide expander arrow when event description is unavailable
Showing an arrow for an empty expander row for the event confuses the user.
The user may misunderstand there is the information behind the arrow and then
the user will click it but will not get any response from the panel.
Therefore, to prevent confusing the user, the expander will be hidden for a
event with an empty description.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2031

Signed-off-by: Kate Hsuan <hpa@redhat.com>
2022-08-29 16:11:14 +00:00
Daniel Mustieles
b3f6a5a9cf Updated Spanish translation 2022-08-29 10:58:27 +02:00
Luming Zh
1e07dfc650 Update Chinese (China) translation 2022-08-28 14:51:50 +00:00
Goran Vidović
a29276bf01 Update Croatian translation 2022-08-26 10:42:28 +00:00
Goran Vidović
2ea1ca7f7c Update Croatian translation 2022-08-26 10:41:25 +00:00
Jordi Mas
af1bc40908 Update Catalan translation 2022-08-26 10:22:27 +02:00
Kukuh Syafaat
0cd72feb98 Update Indonesian translation 2022-08-26 02:03:42 +00:00
Yuri Chornoivan
8f264cc4cb Update Ukrainian translation 2022-08-25 20:15:50 +00:00
Matthias Clasen
920302bb52 background: Allow all images
The code was filtering with a small list of known
image mimetypes, needlessly. Just allow any
image/* mimetypes.

Fixes: #2036
2022-08-25 17:06:12 +00:00
Richard Hughes
12352f8c1a firmware-security: Move the workaround for UEFI Secure Boot lower
This fixes the toplevel security level to correctly show failed.
2022-08-25 14:37:14 +00:00
Felipe Borges
ff904208cb sound: Fix sound alert selection
The mapping between sounds and the UI elements was wrong.

Fixes #2026
2022-08-25 16:08:24 +02:00
Goran Vidović
381b5f51e9 Update Croatian translation 2022-08-25 13:23:37 +00:00
Nart Tlisha
1268ad7274 Update Abkhazian translation 2022-08-25 10:24:04 +00:00
Danial Behzadi
0e8e4ff976 Update Persian translation 2022-08-25 10:13:46 +00:00
Hugo Carvalho
47f7367d9d Update Portuguese translation 2022-08-24 20:53:56 +00:00
Kate Hsuan
0245329949 firmware-security: Hide the panel when chassis type is an empty string
When requesting the chassis type through systemd-hostnamed, it sometimes
returns an empty string "" not the "vm" to present the virtual machine.
Since this panel will not be shown in the VM environment, if systemd-hostnamed
returns an empty string or "vm", the panel will be hidden.

Signed-off-by: Kate Hsuan <hpa@redhat.com>
2022-08-24 14:39:33 +00:00
Matt Turner
b6c6f5c165 build: Use GNOME module post_install() 2022-08-24 14:36:39 +00:00
Richard Hughes
be3d9752bc firmware-security: Handle platforms that do not have a valid set of HSI tests
This affects aarch64 and older AMD devices.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2014
2022-08-24 14:39:58 +01:00
Richard Hughes
941fdeaa05 firmware-security: Only show events that have changed value 2022-08-24 14:27:59 +01:00
Fran Dieguez
52c56c1393 Update Galician translation 2022-08-24 11:43:48 +00:00
Felipe Borges
37921f8a46 display: Fix primary monitor selection issue with AdwComboRow
We were connecting to the selected-index property when AdwComboRow
actually has a selected-item property. This is the same as
issue #2025

Fixes #2028
2022-08-24 11:18:35 +02:00
sunflowerskater
53ff717b4d printers: Use the same sentence for "Add Printer" in button and empty-state
Change the add printer button text, from the empty state section, to "Add Printer..."
(previously was "Add a Printer...") so it gets consistent with the add printer button
from the headerbar (in Printers panel) and with other buttons in Settings that end with
ellipsis, such as the "Add Picture..." from the Appearance panel, which doesn't have the
article also.
2022-08-24 08:46:55 +00:00
Daniel Mustieles
83b6df42d3 Updated Spanish translation 2022-08-24 08:22:34 +02:00
Kukuh Syafaat
981e153afd Update Indonesian translation 2022-08-24 04:54:04 +00:00
Goran Vidović
9d3eeae93c Update Croatian translation 2022-08-23 18:25:18 +00:00
Hugo Carvalho
918a60797f Update Portuguese translation 2022-08-23 16:49:33 +00:00
Felipe Borges
3a31e34514 power: Fix "Power Button Behavior" setting now applying
The AdwComboRow widget has a selected-item property, while we were
connecting to selected-index (which doesn't exist.

It is likely that selected-index existed in the past in libhandy
or libadwaita and this is a regression during the port to GTK4.

Fixes #2025
2022-08-23 15:26:46 +00:00
Felipe Borges
37f5cbe6af power: Fix blank-screen settings not applying
The AdwComboRow widget has a selected-item property, while we were
connecting to selected-index (which doesn't exist.

It is likely that selected-index existed in the past in libhandy
or libadwaita and this is a regression during the port to GTK4.

Fixes #2025
2022-08-23 15:26:46 +00:00
Yuri Chornoivan
9abcf928c3 Update Ukrainian translation 2022-08-23 14:40:25 +00:00
Danial Behzadi
3653a2f512 Update Persian translation 2022-08-23 11:06:07 +00:00
Jake Dane
1ae4d99421 network: Fix 802.1x TLS file chooser filters
If on the Security tab in the connection editor one selected 802.1x
with TLS authentication, the 3 file chooser dialogs there didn't
let one select any file. This was because allowed extensions were
passed to gtk_file_filter_add_suffix () with the leading dot but that
function expects them without the leading dot.

This could be fixed in the code by skipping over the dot but as per
discussion on !1433 it is preferable to use mime types instead. The
code is changed to use mime types for the file chooser dialog filter
and for checking a file is of the right type.

Fixes #2022.
2022-08-23 10:28:19 +00:00
Hugo Carvalho
6885a787ee Update Portuguese translation 2022-08-22 21:44:31 +00:00
Sebastian Keller
7f6dc4511f tests: Add test for keyboard shortcut normalization
This tests if the shortcuts generated from an event are in the format
that the shell expects.
2022-08-22 12:49:13 +00:00
Sebastian Keller
bad61a2229 keyboard: Handle shift shortcut modifier the same way as the shell does
The way shortcuts in mutter/gnome-shell work is that it looks up the
keycode that generates the shortcut keyval at the lowest shift level and
then checks if all the modifiers match. This does not work for shortcuts
that for example include "dollar" to represent "<Shift>4", because on
some keyboards/layout there is a separate dollar key key with its own
keycode. This would be at a lower shift level than "<Shift>4".

By always translating such shortcuts to "<Shift>number", we make sure
the resulting shortcut will work in the shell and is closer to what the
user likely intended the shortcut to be, because numbers are usually
assigned to things that can be enumerated, such as workspaces or
favorite applications.

This also special cases the num-row key on layouts such as AZERTY, where
the number is the shifted keyval, to always prefer the number. Due to
the way the shell interprets these shortcuts, they still work and by
always using numbers they work across different layouts.

This change also fixes that pressing "<Shift><Super>4" was turned into
"<Shift><Super>dollar", which effectively included the "<Shift>" twice.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1528
2022-08-22 12:49:13 +00:00
Sebastian Keller
986a37ff6c keyboard: Split out function to normalize keyval and modifier mask
This will allow it to be tested in a unit test in an upcoming commit.
2022-08-22 12:49:13 +00:00
Aleksandr Melman
9d7379139f Update Russian translation 2022-08-22 11:35:53 +00:00
Kukuh Syafaat
e2af7d0803 Update Indonesian translation 2022-08-22 10:10:12 +00:00
Sabri Ünal
2b66ca051d Update Turkish translation 2022-08-22 01:57:42 +00:00
Luming Zh
0cb71a11d0 Update Chinese (China) translation 2022-08-21 17:03:22 +00:00
Fran Dieguez
f4928d019e Update Galician translation 2022-08-21 15:07:59 +00:00
Fran Dieguez
d54a95b5e7 Update Galician translation 2022-08-21 14:50:56 +00:00
Goran Vidović
5d344d4b0a Update Croatian translation 2022-08-20 21:48:36 +00:00
Pablo Correa Gómez
b9a684dc1d region: fix warning of uninitialized variables
../panels/region/cc-region-panel.c: In function 'set_restart_notification_visible':
../panels/region/cc-region-panel.c:131:17: warning: 'current_locale' may be used uninitialized [-Wmaybe-uninitialized]
  131 |                 uselocale (current_locale);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../panels/region/cc-region-panel.c:115:18: note: 'current_locale' was declared here
  115 |         locale_t current_locale;
      |                  ^~~~~~~~~~~~~~
../panels/region/cc-region-panel.c:130:34: warning: 'new_locale' may be used uninitialized [-Wmaybe-uninitialized]
  130 |         if (locale && new_locale != (locale_t) 0) {
      |                       ~~~~~~~~~~~^~~~~~~~~~~~~~~
../panels/region/cc-region-panel.c:114:18: note: 'new_locale' was declared here
  114 |         locale_t new_locale;
      |                  ^~~~~~~~~~
2022-08-20 20:47:35 +00:00
Pablo Correa Gómez
7846e57bfe region: fix possibly unused variable
../panels/region/cc-format-preview.c: In function 'update_format_examples':
../panels/region/cc-format-preview.c:70:16: warning: unused variable 'fmt' [-Wunused-variable]
   70 |   const gchar *fmt;
      |                ^~~
2022-08-20 20:47:35 +00:00
Pablo Correa Gómez
32b5e5dcb3 region: fix permissions_acquired always returning FALSE 2022-08-20 20:47:35 +00:00
Pablo Correa Gómez
18eea16ff3 keyboard: fix permission_acquired always returning FALSE 2022-08-20 20:47:35 +00:00
Yuri Chornoivan
451acd06e3 Update Ukrainian translation 2022-08-20 18:34:22 +00:00
Марко Костић
25ffe130c7 Update Serbian translation 2022-08-20 13:21:00 +00:00
Danial Behzadi
7b699747f7 Update Persian translation 2022-08-20 12:53:10 +00:00
Piotr Drąg
1aa9e87ff8 Update POTFILES.in 2022-08-20 14:20:09 +02:00
Jordi Mas
1e158a3099 Update Catalan translation 2022-08-20 08:50:08 +02:00
Jiri Grönroos
8eec14743e Update Finnish translation 2022-08-19 13:52:42 +00:00
Marek Kasik
5ceabcb5c7 printers: Show empty-state after removal of the last printer
Check whether the currently removed printer was last. Also
check whether there are other printer being removed by CUPS
right now (their amount is still part of self->num_dests).

Do this check also in actualize_printers_list_cb() to catch
corner cases from timing point of view. This will handle them
with some delay if they show up.

When undone, just check whether the number of printers is higher
than 0 and show the printers-list page.

Fixes #2023
2022-08-18 17:01:02 +02:00
Goran Vidović
c965de1eb4 Update Croatian translation 2022-08-18 14:35:18 +00:00
Felipe Borges
4ea4f41e20 printers: Pass correct argument to gtk_builder_add_objects_from_resource
This is detectable with -Wincompatible-pointer-types and warns with
[1/7] Compiling C object panels/printers/libprinters.a.p/cc-printers-panel.c.o
../panels/printers/cc-printers-panel.c: In function ‘cc_printers_panel_init’:
../panels/printers/cc-printers-panel.c:1228:59: warning: passing argument 3 of ‘gtk_builder_add_objects_from_resource’ from incompatible pointer type [-Wincompatible-pointer-types]
 1228 |                                                           objects, &error);
      |                                                           ^~~~~~~
      |                                                           |
      |                                                           gchar ** {aka char **}
In file included from /usr/include/gtk-4.0/gtk/gtkbuildable.h:26,
                 from /usr/include/gtk-4.0/gtk/gtk.h:56,
                 from /usr/local/include/libadwaita-1/adwaita.h:9,
                 from ../shell/cc-panel.h:25,
                 from ../panels/printers/cc-printers-panel.h:21,
                 from ../panels/printers/cc-printers-panel.c:23:
/usr/include/gtk-4.0/gtk/gtkbuilder.h:122:66: note: expected ‘const char **’ but argument is of type ‘gchar **’ {aka ‘char **’}
  122 |                                                   const char   **object_ids,
      |                                                   ~~~~~~~~~~~~~~~^~~~~~~~~~
[7/7] Linking target tests/network/test-wifi-panel-text
2022-08-18 15:33:38 +02:00
Carlos Garnacho
39402f21ba wacom: Show distinct entries for Wacom Express Key Remote
If you did not know the Wacom Express Key Remote (or EKR for short),
let me introduce it to you:

https://estore.wacom.com/media/catalog/product/cache/fb4143a007ae6439deba9b18afd745f2/a/c/ack-411050_main_2.jpg

This is a hand-sized standalone pad device, meant to be used together
with drawing tablets, providing additional buttons and a touch sensitive
ring that can be mapped to actions and keypresses.

These pads were so far handled in GNOME, but in a very subtle manner.
As the EKR is implicitly paired to a tablet, it was possible to map
EKR buttons from the paired tablet once the pad OSD UI from GNOME
Shell was shown.

As this device basically just needs a "Map buttons" action to
configure it, it just didn't sit well in the older Settings UI,
it would get a separate page with just a lone button in there. So
its support has been kind of an easter egg so far.

But the new UI can indeed accomodate better a device that is neither
tablet nor stylus, and has few options. This commit adds the EKR
as a separate AdwPreferencesGroup.
2022-08-17 11:57:33 +00:00
Felipe Borges
32f73d9045 search: Use "action" to connect to Move up/down actions for rows
Using "action-name" wasn't triggering the callback.

Fixes #2013
2022-08-17 09:41:54 +00:00
Mohammed Sadiq
2dbc195d77 panel-list: Select panel iff non-folded when search is cancelled
If the window is folded, the previous panel shouldn’t be shown when search
is cancelled. The panel selection list should be shown instead.
2022-08-17 09:34:16 +00:00
Mohammed Sadiq
38d62974b6 user-panel: Fix possible invalid free
The selected_user variable is unref on dispose(), and show_user()
is likely executed with self->selected_user already set to user,
but it's inconsistent, and so to be on the safer side, use
g_set_object()
2022-08-17 08:21:34 +00:00
Mohammed Sadiq
234485fd19 online-accounts: Fix a possible crash on parsing NULL string
If the goa helper fails to find goa helper executable (which happened when run
without install), %NULL is returned.  Avoid feeding g_variant_parse(), the %NULL
variable in those case as it is not nullable and avoid the crash that follows.
2022-08-17 08:16:28 +00:00
Mohammed Sadiq
e6aa605bd0 shell: Remove no longer used icon 2022-08-17 08:09:15 +00:00
Mohammed Sadiq
a4aa214d76 info-overview: Use adw-external-link icon
Replace the use of external-link-symbolic which doesn't
work with dark theme
2022-08-17 08:09:15 +00:00
Asier Sarasua Garmendia
658f10ccb7 Update Basque translation 2022-08-16 10:45:03 +00:00
Kukuh Syafaat
e552ad2108 Update Indonesian translation 2022-08-16 08:58:14 +00:00
Luming Zh
42066f9284 Update Chinese (China) translation 2022-08-15 14:13:26 +00:00
Mohammed Sadiq
5f3b16b288 keyboard: Fix activation of input source toggle button
When the options are changed, the first item was never shown as
active when selected.  Fix it by binding to the inverse of the
button state instead of binding both toggle buttons to settings.

Fixes #1653
2022-08-15 08:26:16 +00:00
Mpho Jele
5782c7312c display: remove unused night light dialog code 2022-08-15 08:14:27 +00:00
Mohammed Sadiq
08b1f05a2a user-accounts: Fix a typo in property name 2022-08-15 07:55:36 +00:00
Mohammed Sadiq
ff39de678b common: time-editor: Fix initial AM/PM label value
We set AM/PM label on format change in init(),
but we shall not have set the time in the editor
in init() which results in wrong label if the time
is PM.

Fix it by updating clock label after time changes
2022-08-14 21:34:07 +05:30
Mohammed Sadiq
57c919b7d9 common: time-entry: Emit time-changed on time change 2022-08-14 21:33:52 +05:30
Quentin PAGÈS
1c81645735 Update Occitan translation 2022-08-13 18:01:15 +00:00
Jordi Mas
25360f2d3b Update Catalan translation 2022-08-13 14:00:59 +02:00
Aleksandr Melman
674644a85e Update Russian translation 2022-08-13 11:27:36 +00:00
Goran Vidović
fe8d4ad073 Update Croatian translation 2022-08-12 22:21:37 +00:00
Goran Vidović
b9b04f4f28 Update Croatian translation 2022-08-12 22:06:41 +00:00
Yuri Chornoivan
9d6d0281d4 Update Ukrainian translation 2022-08-12 20:39:42 +00:00
Danial Behzadi
4900242cf0 Update Persian translation 2022-08-12 18:02:43 +00:00
Hugo Carvalho
b8023ab903 Update Portuguese translation 2022-08-12 11:42:10 +00:00
Zurab Kargareteli
12bff97e53 Update Georgian translation 2022-08-12 03:36:08 +00:00
Georges Basile Stavracas Neto
f90f503aea 43.beta 2022-08-11 23:14:20 -03:00
Athul Iddya
43b61571c1 network: Show VPN empty state by default
The network panel used to show an empty box under the VPN header at
start up if no VPNs were present instead of the empty state. This was
because the GtkListBox containing VPN connections was visible by
default instead of the empty state widget.

To fix this, the empty state widget has been moved to the top in the
GtkStack to show it by default. If any VPN connections are found during
initialization, `cc-network-panel` already handles setting the
visibility of the appropriate widget correctly.

Fixes: #1634
2022-08-12 01:32:15 +00:00
Will Thompson
50a92f110d info-overview: show BUILD_ID in separate row
Previously, if os-release included the BUILD_ID field, it was smushed
into the OS Name row as follows:

    OS Name                    Endless OS 5.0.0; Build ID: 220810-230009

This is unsightly in English; and in languages where the translations of
"OS Name" and "Build ID" are long, the build ID may be ellipsised and
hence useless:

    Nom du système   Endless OS 5.0.0 ; (identifiant de construction ...
    d'exploitation

Instead, display the build ID in a separate row, and hide it if not
present.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1347
2022-08-12 01:24:37 +00:00
Nils Lück
3194a1890f Migrate CcPasswordDialog from AdwPreferencesWindow to AdwWindow 2022-08-12 01:24:10 +00:00
Sabri Ünal
d4b47f4fc3 Update Turkish translation 2022-08-11 19:50:02 +00:00
Yuri Chornoivan
18cca37d26 Update Ukrainian translation 2022-08-11 19:04:09 +00:00
Jakub Steiner
9def0c98e3 sound: tweak default alert sounds
- one more review pass by the designers:
  - shorter
  - tone down reverb
  - fine tune the pan on swing
  - forceful fade out to 0 on all clips
2022-08-11 16:36:59 +02:00
Eric Daigle
a71c3ac3c3 cc-printers-panel: don't show two Add Printer buttons at once
As described in #1976, the printers panel shows two Add Printer buttons when the
printers list is empty. Adds a check that sets the Add Printer button in the toolbar
to be invisible when the empty-state page is shown (and thus the other Add Printer
button is visible), creating a less confusing UI.

Closes #1976
2022-08-11 13:08:02 +00:00
Jakub Steiner
e3395b1dc3 sounds: EQ sounds
- few EQ and timing adjustments to the sounds

See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/264
2022-08-11 12:20:23 +00:00
Felipe Borges
878171bd7c sound: Update sound alerts
Old sound alerts set by users will be migrated to the "click"
sound alert.

Fixes #264
2022-08-11 12:20:23 +00:00
Yuri Chornoivan
cc8014f54b Update Ukrainian translation 2022-08-11 05:53:49 +00:00
Danial Behzadi
7b9bc5e23d Update Persian translation 2022-08-10 20:55:38 +00:00
Danial Behzadi
ef2dada3be Update Persian translation 2022-08-10 19:52:53 +00:00
Georges Basile Stavracas Neto
0aed0c5ecd applications: Tweak screenshot description
As per design feedback, tweak the screenshot description text to
"Take pictures of the screen at any time."
2022-08-10 16:50:41 -03:00
Kate Hsuan
82b6e2c7bb firmware-security: Tweak panel style
Fix the spacing issues of several widgets, including the status icon,
label, and subtitle in a expander row.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1999
Signed-off-by: Kate Hsuan <hpa@redhat.com>
2022-08-10 16:31:26 -03:00
Yuri Chornoivan
817f9da208 Update Ukrainian translation 2022-08-10 19:15:08 +00:00
Georges Basile Stavracas Neto
17b018a9fb applications: Add support for the screenshot permission
Add support for managing the screenshot permission, used by apps
who request non-interactive screenshots from the portal.

See also https://github.com/flatpak/xdg-desktop-portal/pull/851
2022-08-10 19:03:15 +00:00
Boyuan Yang
04f9784b5c Update Chinese (China) translation 2022-08-10 15:15:10 +00:00
Jordi Mas
5b251eab69 Update Catalan translation 2022-08-10 13:52:39 +02:00
Kate Hsuan
57fb0e28ae panels: firmware-security: Fix incorrect secure boot icon
If Secure boot is enabled, secure_boot_icon should be channel-secure-symbolic.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1998
Signed-off-by: Kate Hsuan <hpa@redhat.com>
2022-08-10 11:47:52 +08:00
Yosef Or Boczko
39d05db0e5 Update Hebrew translation 2022-08-09 17:27:18 +00:00
Yuri Chornoivan
f395ff3e71 Update Ukrainian translation 2022-08-09 17:07:45 +00:00
Danial Behzadi
56ee5e1b00 Update Persian translation 2022-08-09 09:12:54 +00:00
Hugo Carvalho
24435c7212 Update Portuguese translation 2022-08-08 22:45:44 +00:00
Georges Basile Stavracas Neto
6fd7164837 Revert "applications: Add support for the screenshot permission"
This reverts commit 49486dba68.
2022-08-08 17:24:42 -03:00
Aurimas Černius
17fd8f3a5c Updated Lithuanian translation 2022-08-08 23:20:38 +03:00
Georges Basile Stavracas Neto
78434394b2 applications: Add missing end period to Storage row 2022-08-08 19:32:20 +00:00
Georges Basile Stavracas Neto
94b591ac42 applications: Fix header capitalization of background row 2022-08-08 19:32:20 +00:00
Georges Basile Stavracas Neto
49486dba68 applications: Add support for the screenshot permission
Add support for managing the screenshot permission, used by apps
who request non-interactive screenshots from the portal.

See also https://github.com/flatpak/xdg-desktop-portal/pull/851
2022-08-08 19:32:20 +00:00
Daniel Mustieles
e3209ca2fa Updated Spanish translation 2022-08-08 12:44:33 +02:00
Asier Sarasua Garmendia
5edf8fdc56 Update Basque translation 2022-08-07 09:33:51 +00:00
Hugo Carvalho
a233c68bf9 Update Portuguese translation 2022-08-06 23:07:14 +00:00
Danial Behzadi
d88e24dcd2 Update Persian translation 2022-08-06 22:50:42 +00:00
Quentin PAGÈS
a958cb13c7 Update Occitan translation 2022-08-06 17:05:56 +00:00
Aleksandr Melman
04e6ebc2d3 Update Russian translation 2022-08-06 14:42:29 +00:00
Alexander Shopov
646e71c761 Update Bulgarian translation 2022-08-05 08:57:38 +00:00
Alexander Shopov
df73711e36 Update Bulgarian translation 2022-08-05 08:48:58 +00:00
Yuri Chornoivan
fae29f0f8d Update Ukrainian translation 2022-08-05 06:56:10 +00:00
Kate Hsuan
784f83eb44 panels: firmware-security: new panel UX design implementation
The new UX implementation includes
1. Showing the security level using a number.
2. Showing descriptions of events and HSI checking items.
3. Change the style of the security level number.
4. Add the status icon and label for each HSI checking item.

Signed-off-by: Kate Hsuan <hpa@redhat.com>
2022-08-04 19:46:28 +00:00
Felipe Borges
c2145cacf4 user-accounts: Use "title" styling for login history dialog header
See https://docs.gtk.org/gtk4/class.HeaderBar.html#gtkheaderbar-as-gtkbuildable

Fixes #1958
2022-08-03 11:16:26 +00:00
Hendrik Müller
48497080b3 wifi: Fix bug in Known Wi-Fi Networks dialog
The "Forget" button would only update it's sensitivity after the first
select and deselect, when selecting and deselecting rows in the
"Known Wi-Fi Networks" dialog.
When selecting the first row, it would go from disabled to enabled.
Then deselecting that row would cause the button to go from enabled to
disabled.
Selecting any rows after that would no longer update the sensitivity and
make the dialog essentially useless.

The issue was, that the signals "add" and "remove" where being
expected to be emitted when the connection list updates its rows.
However, neither CcWifiConnectionList nor GtkListBox emit these signals.
The fix was, to emit these two signals at the appropriate locations.
The signals have also been renamed to "add-row" and "remove-row" to
make their purpose more clear.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1824
2022-08-03 11:05:16 +00:00
Mpho Jele
dea4ce1d48 user-accounts: Remove status icons from password entries
Adding the 'error' css class to icons visually indicates that
there's an issue with the input. This is the same purpose served
by the status icons. Another reason to remove the status icons
is that with the error class added to entries the entries dim
except for the status icons.
2022-08-03 09:58:41 +00:00
Mpho Jele
33a445f12e user-accounts: Make password dialog use libadwaita password entries 2022-08-03 09:58:41 +00:00
Hugo Carvalho
68760a06a9 Update Portuguese translation 2022-08-03 09:56:59 +00:00
Felipe Borges
c381c633af user-accounts: Show "automatic login" option when locked
It should be made insensitive when the panel is locked, and sensitive
when locked.

We only hide this row for non-local users, where this setting doesn't
make much sense.

Fixes #1944
2022-08-03 09:39:59 +00:00
Hugo Carvalho
3b8f43647d Update Portuguese translation 2022-08-03 09:27:07 +00:00
Hendrik Müller
c44ee6fa80 wifi: Add padding to Known Wi-Fi Networks dialog
The "Known Wi-Fi Networks" dialog is missing some padding to really
make it look polished.

By switching from a normal dialog to an AdwPreferencesWindow, we can
take advantage of libadwaita's automatic padding.
This will make sure the dialog is more in line with the rest of the
GNOME ecosystem.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1956
2022-08-03 09:18:39 +00:00
Fran Dieguez
5cfc7175b1 Update Galician translation 2022-08-03 06:02:06 +00:00
Asier Sarasua Garmendia
e94e959e1d Update Basque translation 2022-08-02 17:40:44 +00:00
Yuri Chornoivan
e89c36c05e Update Ukrainian translation 2022-08-02 11:35:29 +00:00
Luming Zh
3adb3ef3f2 Update Chinese (China) translation 2022-08-01 21:19:51 +00:00
Dirk Su
83278d2724 panels: wwan: Add WWAN 5G connection support 2022-08-01 20:06:51 +00:00
Richard Hughes
e0d599bb40 firmware-security: Do not show the 'Processor Supported' attribute
This is really just saying "the HSI tests make sense" and is not really
useful to show in the UI.
2022-08-01 19:53:15 +00:00
Aurimas Černius
3452fdf788 Updated Lithuanian translation 2022-08-01 22:52:40 +03:00
Aleksandr Melman
e987c076de Update Russian translation 2022-08-01 13:13:12 +00:00
Fran Dieguez
3c7974f8a1 Update Galician translation 2022-08-01 07:02:04 +00:00
Quentin PAGÈS
776006a75f Update Occitan translation 2022-07-30 18:33:34 +00:00
Zurab Kargareteli
d992d7547e Update Georgian translation 2022-07-30 14:28:51 +00:00
Danial Behzadi
15f389563c Update Persian translation 2022-07-30 14:17:16 +00:00
Yuri Chornoivan
8587718491 Update Ukrainian translation 2022-07-30 11:02:21 +00:00
Jordi Mas
f53147acc2 Update Catalan translation 2022-07-30 11:59:29 +02:00
Jordi Mas
f5a295ff74 Update Catalan translation 2022-07-30 10:12:16 +02:00
Piotr Drąg
df653e3129 Update POTFILES.in 2022-07-29 16:25:16 +02:00
Jordi Mas
f04e363bdc Update Catalan translation 2022-07-29 14:46:04 +02:00
Kate Hsuan
68ca4e5a3f Show a description for each event
Show the HSI event description to improve the UX and match the new mockups.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1938

Signed-off-by: Kate Hsuan <hpa@redhat.com>
Signed-off-by: Richard Hughes <richard@hughsie.com>
2022-07-29 07:35:30 +01:00
Marco Trevisan (Treviño)
72863a8f56 screen: Add Screen Privacy section to show Privacy screen toggle
The privacy screen toggle is visible only when there's a monitor that
supports it and it's modifiable only when there's not hardware lock.

Fixes: #909
2022-07-28 22:47:14 +00:00
Marco Trevisan (Treviño)
2f6d086c6f display-config: Parse privacy screen property and expose it per monitor
Each monitor can have a privacy screen property, so read it and expose
so that it can be at upper levels.
2022-07-28 22:47:14 +00:00
Marco Trevisan (Treviño)
b327301951 Panels: Rename lock panel into screen panel
This was designed some time ago [1] but never actually implemented, so:
 - Change the screen lock section to "screen"
 - Move the screen section up, so it's next to the other types of
   hardware
 - Added a Screen lock section in there

[1] https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/909#note_737827
2022-07-28 22:47:14 +00:00
Nart Tlisha
4e06f21e14 Update Abkhazian translation 2022-07-28 19:06:45 +00:00
Kukuh Syafaat
d9235f3fb5 Update Indonesian translation 2022-07-28 07:17:07 +00:00
Bartłomiej Piotrowski
1720d39c83 Update (or drop) the Docker image used by Flatpak job
The gnome-runtime-images have been recently migrated to Quay. This is already reflected in the template.

Please note this MR has been created semi-automatically. If it doesn't make sense, feel free to close it.
2022-07-27 12:43:42 +02:00
Felipe Borges
ec2c3d477d sharing: Use AdwEntryRow for remote-desktop setup
See #1930
2022-07-26 20:11:56 +00:00
Felipe Borges
24f4c66dd5 build: Bump libadwaita dependency to 1.2.alpha 2022-07-26 20:11:56 +00:00
Hugo Carvalho
60f9dafb65 Update Portuguese translation 2022-07-26 17:26:18 +00:00
Nart Tlisha
51c5111687 Add Abkhazian translation 2022-07-25 14:34:58 +00:00
Aleksandr Melman
5bf2ff0d93 Update Russian translation 2022-07-25 13:22:45 +00:00
Mpho Jele
272b73795d user-accounts: Make back button switch to current user or panels list
When the window AdwLeaflet is folded the back button should either
switch to the panels list if the selected user is the current user
or switch to the current user if the selected user is from the
"other users" list
2022-07-24 15:29:46 +00:00
Mpho Jele
311268c4f7 user-accounts: Show the back button when window leaflet folds
Currently the back button is only shown when viewing a user from the
"other users" list.
These changes show the back button when the window AdwLeaflet is
folded or when the selected is from the "other users" list but never
when the window is not folded and the selected user is the current
user.

Fixes: #1719
2022-07-24 15:29:46 +00:00
Lukáš Tyrychtr
cf99eb4529 user-accounts: Set a11y label for login history dialog title
This was originally https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1402
2022-07-24 09:36:51 -05:00
Zurab Kargareteli
3f83ec7f7b Update Georgian translation 2022-07-24 05:21:02 +00:00
A S Alam
de25df57bd Update Punjabi translation 2022-07-23 18:02:03 +00:00
Emin Tufan Çetin
2c09603854 Update Turkish translation 2022-07-22 15:13:44 +00:00
Emin Tufan Çetin
ff50996181 Update Turkish translation 2022-07-22 15:02:32 +00:00
Zurab Kargareteli
b17568d14c Update Georgian translation 2022-07-22 13:43:18 +00:00
Danial Behzadi
bda6b466ff Update Persian translation 2022-07-22 12:03:30 +00:00
Yuri Chornoivan
952bb43c58 Update Ukrainian translation 2022-07-22 06:47:00 +00:00
Georges Basile Stavracas Neto
caa9b59f41 online-accounts: Mark run_goa_helper_sync as NULL-terminated
Spotted while porting GNOME Initial Setup [1]

[1]
https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/merge_requests/134
2022-07-21 16:54:25 -03:00
Kate Hsuan
1e53da4720 panels: firmware-security: Reduce the length of description
The descriptions of secure boot status were made simpler to improve the
user friendly.

Link: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1937
Signed-off-by: Kate Hsuan <hpa@redhat.com>
2022-07-21 22:50:06 +08:00
Richard Hughes
e11929e0c1 firmware-security: Hide the panel when using a VM
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1972
2022-07-21 13:21:12 +01:00
David King
590351051f network: Fix VPN with unescaped ampersand
Much like in commit 47c586a82e for the
wifi panel, fix escaping of titles for VPNs.

https://bugzilla.redhat.com/show_bug.cgi?id=2090996
2022-07-20 17:53:11 +00:00
Kate Hsuan
d38a570efa firmware-security: Set the HSI row icon correctly for higher HSI levels
Set icon image to "emblem-default-symbolic" for higher HSI value.
2022-07-20 15:58:07 +00:00
Richard Hughes
032f8a4556 firmware-security: Correctly show SecureBoot status with new fwupd versions
Adapt to the org.fwupd.hsi.Uefi.SecureBoot HSI being fixed in
https://github.com/fwupd/fwupd/pull/4835 (level 0 isn't a valid number
unless it is a runtime issue, and the docs have always said HSI-1).

The org.fwupd.hsi.Uefi.Pk attribute has always been HSI-1, and so the
wrong hashtable was being queried -- which is probably my fault for
making SecureBoot an invalid value in the first place.

We also do not have to track the HSI-0 failures now, so delete the
hashtable completely.
2022-07-20 15:58:07 +00:00
Richard Hughes
5954dffda4 firmware-security: Set the HSI row colors correctly for higher HSI levels
If we get HSI-2 then the HS1-2 row should be 'success', as should HSI-1.
2022-07-20 15:58:07 +00:00
Bilal Elmoussaoui
bb86c36147 panels: Use icon-name property instead
Don't embed a custom GtkImage as that would lack the appropriate style
classes
that GtkButton/GtkMenuButton would automatically add for us
2022-07-20 14:15:57 +02:00
Pablo Correa Gómez
624023d633 display: avoid unnecessary gtk_style_context_get_margin call
The margin went unused after the monitor labels moved to the center
of the displays.

Fixes: e7e80efc ("display: Change appearance and size of monitor labels")
2022-07-18 17:58:46 +02:00
Jordi Mas
1f7377e19d Update Catalan translation 2022-07-15 20:12:08 +02:00
Jordi Mas
57f2dca0f7 Update Catalan translation 2022-07-14 22:35:32 +02:00
Yosef Or Boczko
f7c7537a90 Update Hebrew translation 2022-07-14 10:04:43 +00:00
Jordi Mas
56eea97e13 Update Catalan translation 2022-07-11 23:05:56 +02:00
Jens Alpers
b9bf21a016 Issue 1846, Check for NULL pointer before gtk_editable_set_text 2022-07-11 02:20:50 +00:00
Georges Basile Stavracas Neto
577d4ba798 Post-release version bump 2022-07-09 15:20:47 -03:00
Georges Basile Stavracas Neto
66a2d561a3 43.alpha 2022-07-09 15:13:14 -03:00
Carlos Garnacho
4eb075e5a5 display: Set a smaller width to display arrangement widget
This default size happens to expand the panel content horizontally,
this is seen as small jumps changing between joined and cloned views.
With this slightly smaller size, no further size jumps happen.
2022-07-08 13:41:30 -03:00
Carlos Garnacho
e8fcfc05a6 display: Make "Mirror" option show a single configuration for all displays
Since all displays are constrained to the same options, promote one so it's
shown in the main panel, the rest does work itself out.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1849
2022-07-08 13:41:30 -03:00
Carlos Garnacho
dc8eb2c22c display: Set "Multiple Displays" option on top
And make the display arrangements widget a row of the displays
preferences group, as per the latest mockups.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1851
2022-07-08 13:41:30 -03:00
Carlos Garnacho
e7e80efcbc display: Change appearance and size of monitor labels
Make these rounded everywhere, and have a lighter background and be
centered as per the latest mockups.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1850
2022-07-08 13:28:44 -03:00
Carlos Garnacho
2f9ec8b0a8 display: Set CSS class on the display arrangement widget
Instead of doing it via push/pop on the style context at draw time.
This way we will be able to specify and propagate some font style
to the monitor label, since style fonts are per-widget.
2022-07-08 13:28:44 -03:00
Pauli Virtanen
7e08d6874f subprojects: revert accidental libgvc downgrade
Re-do the libgvc version upgrade from 8c84b9f0d3 ("subprojects: Update
libgvc"), which was accidentally reverted in 95de2049c7 ("shell:
Initialise locale early") without comment.
2022-07-07 14:18:17 +00:00
Jakub Steiner
064c6a807d timezone: Use blank map 2022-07-07 11:37:39 +00:00
Carlos Garnacho
f923c3ca01 datetime: Drop timezone highlighting
In most situations it is sufficient with the hint bubble being
displayed, or city name search, rely on these.
2022-07-07 11:37:39 +00:00
Carlos Garnacho
65d83189e9 datetime: Drop colormap
This image file is nowadays unused, except for loading/destroying it.
We can simply drop this.
2022-07-07 11:37:39 +00:00
Hugo Carvalho
05de8cb2ee Update Portuguese translation 2022-07-07 10:51:19 +00:00
Hendrik Müller
f0890ca1b6 wifi: Allow accessing settings of known wifi networks
Currently it is only possible to access the settings for the currently
connected wifi network.
Being able to configure a wifi network, even though it is not connected,
would be useful for example to share the password for a network that is
not in range.

To achieve this, a new property was added to CcWifiConnectionRow.
The new property "known_connection" signals whether this connection is
known and thus whether the options button for configuring it should be
displayed.

The property "known_connections" will be set to TRUE in two cases:
- when the list of connections is shown in the "Known Networks" dialog
- when the connection is known, but not the active connection

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1906
2022-07-06 19:34:56 +00:00
Sabri Ünal
7e6022a048 Update Turkish translation 2022-07-06 16:10:34 +00:00
Nathan Follens
bb89fc1d0e Update Dutch translation
(cherry picked from commit ed5693624b)
2022-07-04 08:40:15 +00:00
Мирослав Николић
368ed784eb Update Serbian translation
(cherry picked from commit cbcb717f68)
2022-07-03 02:02:55 +00:00
Aurimas Černius
5c025fcff9 Updated Lithuanian translation 2022-07-02 22:58:07 +03:00
Aleksandr Melman
46d4338335 Update Russian translation 2022-07-02 18:45:47 +00:00
Quentin PAGÈS
4723b8c1eb Update Occitan translation 2022-07-02 18:26:06 +00:00
Quentin PAGÈS
ccbf4d26fe Update Occitan translation 2022-07-02 17:48:23 +00:00
Andy Holmes
3d5be3b1fd notifications: fix potential null dereference in app_info_get_id()
Although apparently unlikely, `strlen()` is called on the return value
of `desktop_id` instead of `ret`, which may result in a null
dereference.
2022-06-30 11:11:06 -07:00
Zurab Kargareteli
8baa16d891 Update Georgian translation 2022-06-30 12:54:33 +00:00
Daniel Mustieles
150e92aa69 Updated Spanish translation 2022-06-30 13:33:03 +02:00
Asier Sarasua Garmendia
0671705610 Update Basque translation 2022-06-29 18:45:24 +00:00
Alexander Mikhaylenko
38442303e0 background: Adjust preview header bar style
There has been a slight change, sync to it.
2022-06-28 22:36:36 +04:00
Gianvito Cavasoli
478b472a9c Update Italian translation
(cherry picked from commit 0151a0ac25)
2022-06-28 11:14:51 +00:00
Danial Behzadi
c4ff476f2b Update Persian translation 2022-06-28 11:10:02 +00:00
Yuri Chornoivan
850684d62e Update Ukrainian translation 2022-06-27 20:04:17 +00:00
Kate Hsuan
69598b9e08 Add Firmware Security panel
The Firmware Security panel exposes the host security levels
and details. The information is generated by fwupd. The panel
also exposes hardware configuration changes to pinpoint the
configuration changing time.

Currently this panel shows:

 - HSI and secure boot status
 - Details of HSI and secure boot
 - Configuration changelog
 - Digested security level
 - Extended protection
2022-06-27 13:53:30 -03:00
Jonas Ådahl
9e4f15353c display: Use virtual clone modes when mirroring
These are not real modes, but just as place holders when generating
'mirror' configurations. The clone modes will be just to match the
flag/dimension, while the actual mode applied will be individual for
each monitor.

This allows monitors to have their own refresh rates, which is possible
since a few mutter versions back. This also matches how mutter itself
generates mirror modes when doing so via the key binding.
2022-06-27 14:06:16 +00:00
Jonas Ådahl
6087c0397b display: Add 'is_preferred()' mode getter 2022-06-27 14:06:16 +00:00
Luming Zh
588e721472 Update Chinese (China) translation 2022-06-26 23:34:06 +00:00
Aleksandr Melman
fcf9a970df Update Russian translation 2022-06-25 18:24:49 +00:00
Piotr Drąg
5d89ef3723 Update POTFILES.in 2022-06-25 12:46:57 +02:00
Quentin PAGÈS
0c35f298ee Update Occitan translation 2022-06-24 20:23:51 +00:00
Rūdolfs Mazurs
733478920d Update Latvian translation 2022-06-24 19:15:03 +00:00
Asier Sarasua Garmendia
dce8c31f05 Update Basque translation 2022-06-22 19:17:16 +00:00
Hugo Carvalho
1e372ae0af Update Portuguese translation 2022-06-22 13:32:47 +00:00
Daniel Mustieles
914657e405 Updated Spanish translation 2022-06-22 11:51:41 +02:00
Yuri Chornoivan
599bb9fe4a Update Ukrainian translation 2022-06-21 06:39:45 +00:00
Lubomir Rintel
dad011062b wwan: do not insist SIM ID being present
It is perfectly possible for mm_sim_dup_identifier() to return NULL if
the SIM ID wasn't provided by the modem for any reason, leading to an
assertion failure:

  (gnome-control-center:910641): cc-wwan-data-CRITICAL **: 12:43:51.573:
    cc_wwan_data_set_default_apn: assertion 'self->sim_id != NULL' failed

Handle the NULL SIM ID gracefully.
2022-06-20 23:48:31 +00:00
Christian Glombek
0fbe2ada5a network/ce: Provide error tooltip in connection editor
Pass through localized libnm error messages as tooltips
to the apply button. That way, users can easily identify
configuration errors.
2022-06-20 23:37:44 +00:00
grumpey
3ca850b257 Add support for multiple file selection
fix formatting
2022-06-20 23:25:44 +00:00
Maximiliano Sandoval R
96e0db8ba0 wifi-panel: Have all widgets with the same margins
As it was, the two listboxes had different sizes. Unfortunately, the different
panels have different sizes now.
2022-06-20 23:16:19 +00:00
Lukáš Tyrychtr
e39de651a2 Fix formatting 2022-06-20 23:04:56 +00:00
Lukáš Tyrychtr
bd74296222 We don't need the declaration after all 2022-06-20 23:04:56 +00:00
Lukáš Tyrychtr
e68e93dc64 Fix submodule 2022-06-20 23:04:56 +00:00
Lukáš Tyrychtr
2148e23d97 Printer panel a11y fixes 2022-06-20 23:04:56 +00:00
Aurimas Černius
6c34dc5089 Updated Lithuanian translation 2022-06-20 22:29:01 +03:00
Hugo Carvalho
2690daf819 Update Portuguese translation 2022-06-20 15:56:18 +00:00
Yuri Chornoivan
07f850b65a Update Ukrainian translation 2022-06-20 15:21:07 +00:00
Benjamin Berg
cfc5fdb7c6 shell: Deactivate old panel before creating new one
We need to cancel internal operations before starting to create a new
panel, otherwise panels might be creating the same object for the cache
in parallel and this is not supported by the object cache.

The alternative to this would be to handle this inside the object
store to allow parallel creation of the same key.

Fixes: #1685
2022-06-20 03:18:30 +00:00
Robert Ancell
4159a5ca68 network: Replace deprecated nm_client_wireless_set_enabled 2022-06-20 02:29:39 +00:00
Robert Ancell
6911110111 network: Replace deprecated nm_client_deactivate_connection 2022-06-20 02:29:39 +00:00
Robert Ancell
a793e49acd wwan: Replace deprecated nm_device_disconnect 2022-06-20 02:29:39 +00:00
Robert Ancell
c23c56a0a1 network: Replace deprecated nm_device_disconnect 2022-06-20 02:29:39 +00:00
Pablo Correa Gómez
bb4acf75ef user-accounts: run-passwd: Redirect stderr to stdout in the child
The previous code was prone to race conditions if the child already
started writing to stdout before the dup2 call happened. This has
been detected in postmarketOS[1] and I also reproduced it in Alpine
Linux. Since passwd writes to stderr and linux-pam to stdout, the
redirection was needed. However, linux-pam was failing with
"Conversation error" since an fprintf(stdout, ...) call wasn't
able to write to an already-closed stdout.

This problem is fixed by setting the redirection in the child setup
function and ignoring the stderr pipe. It also fixes a leak, where
the stderr fd was simply ignored and never closed.

[1] https://gitlab.com/postmarketOS/pmaports/-/issues/1449
2022-06-20 01:33:36 +00:00
Amy
0f60cad6bd network: fix line break issues
Commit 5e0fc5c1 ("network: prevent crash by disconnecting device")
introduced two new line breaks after the final call of
remove_wifi_device. Those line breaks are unnecessary, as pointed out by
Robert (@robert.ancell). They should be removed for the MR to be merged.

This patch removes those line breaks, which should allow for !1359 to be
properly merged.
2022-06-20 01:24:25 +00:00
Amy
fd76bfb71e network: prevent crash by disconnecting device
When a device is registered with add_wifi_device, a corresponding signal
is registered for events. The associated remove_wifi_device clears the
associated pages, but does not disconnect the signal. This causes the
assertion NET_IS_DEVICE_WIFI to fail.

This patch corrects this error, resolving #1889 as per the suggested fix
from Benjamin (@bberg).
2022-06-20 01:24:25 +00:00
Maximiliano Sandoval R
2252ee27b4 connection-editor: Set default height to 600
If the dialog cannot be resized might as well be big enough to not
require scrolling on a big enough screen.
2022-06-20 00:30:58 +00:00
David Bauer
533b698f60 network: implement handling for OWE TM
Implement handling for OWE-TM networks.

 * Correctly display encryption type when connected to a OWE-TM network
   with an open profile (Previously showed as WPA2
 * Mask out hidden transition SSID when connected to the OWE-TM network
 * Don't display OWE-TM network with lock icon

Signed-off-by: David Bauer <mail@david-bauer.net>
2022-06-19 23:53:24 +00:00
Lukáš Tyrychtr
8cd39513be Fix a typo 2022-06-19 23:25:30 +00:00
Lukáš Tyrychtr
ca04a2b550 Add a few missing labels in the wacom settings 2022-06-19 23:25:30 +00:00
Lukáš Tyrychtr
fa10fcfe5e Add a11y labels for close notification buttons in the thunderbolt panel 2022-06-19 23:13:51 +00:00
Lukáš Tyrychtr
ab852ca63c Make the presentation of the main panel list a little bit nicer by adding an a11y label 2022-06-19 23:02:54 +00:00
Maximiliano Sandoval R
3a96f428ca ce-page-details: Do not set children for CheckBtn
This widget does not support adding arbitrary children, a warning was
issued when it was disposed for still having children.
2022-06-19 22:17:18 +00:00
Lukáš Tyrychtr
c6fe35a310 Fix a missing a11y tag 2022-06-19 22:01:45 +00:00
Lukáš Tyrychtr
840024b685 Make the universal panel more accessible by adding some a11y described by relations and a few labels 2022-06-19 22:01:45 +00:00
Christian Glombek
1e06a0e0dd network/ce: Fix address label ids on ip4-page
In 861d762ce5,
the address labels on the IPv4 page were renamed, however the corresponding
change was not made in the respective .ui file, which results in a crash upon
construction of the page. This change fixes that.
2022-06-19 21:50:23 +00:00
Lukáš Tyrychtr
87ef7e25f6 Add a few missing a11y labels to the users panel 2022-06-19 21:41:09 +00:00
Lukáš Tyrychtr
06b6614e9b Improve accessibility of the wwan settings panel 2022-06-19 21:04:48 +00:00
Quentin PAGÈS
01eb0e9ae1 Update Occitan translation 2022-06-19 18:03:35 +00:00
Aleksandr Melman
cbf345069c Update Russian translation 2022-06-18 21:24:02 +00:00
Jordi Mas
35ac91e00f Update Catalan translation 2022-06-17 15:55:40 +02:00
Yuri Chornoivan
9ca6a7ab2c Update Ukrainian translation 2022-06-17 13:17:22 +00:00
Hugo Carvalho
f0b9dae503 Update Portuguese translation 2022-06-17 11:05:34 +00:00
Piotr Drąg
1e6e77e07d Update POTFILES.in 2022-06-17 12:54:54 +02:00
Yuri Chornoivan
3375e87448 Update Ukrainian translation 2022-06-17 05:25:14 +00:00
Lukáš Tyrychtr
98fcce2202 Add missing a11y labels 2022-06-17 02:01:33 +00:00
Robert Ancell
2536f946eb color: Remove dead code
This code was disabled as part of the GTK4 port (d00cc39)
2022-06-17 01:42:12 +00:00
Amy
7f4a7c125f background: fix parameter indentation
Commit d2474bf0 ("background: revert false indentation") fixed a warning
which sprung from improper indentation of a function call. To comply 
with project style, the parameter list's indentation must also be
adjusted. This issue was pointed out by Georges (@fearanon). 

This patch changes the indentation of the parameters in compliance.
2022-06-15 19:26:24 +00:00
Amy
dbfc44b1f4 background: revert false indentation
Commit 46673670 ("Fix indentation") indented lines 160-163 of
cc-background-chooser.c to make them seem as if they were part of the
associated if statement. However, they are not, which causes confusion
as to the intention of the code. It appears as if the
gtk_accessible_update_property call is executed upon button being non-
null, but it is always executed due to the lack of an if block. For
clarity, and to resolve a compiler warning, this patch should be
reverted.

This patch reverts 46673670, changing the indentation back correctly. 
This was mentioned in #1902 and received no objections, including
approval from Lukas.
2022-06-15 19:26:24 +00:00
Cassidy James Blaede
91f3a7ec4f background: change "Light" to "Default" 2022-06-15 19:12:10 +00:00
Luming Zh
787e96de9b Update Chinese (China) translation 2022-06-15 18:29:17 +00:00
Milo Casagrande
c42f3c3a2a Update Italian translation
(cherry picked from commit b593dc4e64)
2022-06-14 15:29:34 +00:00
A S Alam
44601644b3 Update Punjabi translation 2022-06-12 15:50:52 +00:00
Amy
fbad193899 Update GLib dependency to 2.70
To support commit 9de5b003, the minimum GLib dependency level must be
updated to 2.70 as that release introduced g_pattern_spec_match_string.

This patch updates the GLib minimum required level in accordance.
2022-06-10 18:08:41 +00:00
Amy
ea635be532 default-apps: switch away from deprecated function
cc-default-apps-panel.c:101 uses g_pattern_match_string, which is now
considered deprecated in Glib. It is better to use the 2.70+
g_pattern_spec_match_string, which works as a drop-in replacement. This
helps with function organization, as the original was created as a
general Glib function while g_pattern_spec_match_string works under the
PatternSpec module.

This patch swaps the usage to the newer function, creating no functional
difference and resolving a deprecated functions warning.
2022-06-10 18:08:41 +00:00
Amy
8949aeb338 info-overview: remove extra whitespace
Commit 61908b02 ("
info-overview: change fetch order for consistency") introduces
undesired whitespace. While remaking the commit is not necessary, as it
will not affect bisecting, the whitespace should be eliminated.

This patch removes the whitespace, leaving only one preceding and
proceeding line for the get_hardware_model call.
2022-06-10 17:40:34 +00:00
Amy
f2f2807e84 info-overview: change fetch order for consistency
Currently, the order in which info_overview_panel_setup_overview fetches
data is essentially random. For ease of maintainability and
understanding, the fetches should be ordered by their appearance as rows
in the panel.

This patch changes the order so that it corresponds with the panel's UI
order.
2022-06-10 17:40:34 +00:00
Bastien Nocera
47c586a82e network: Fix Wi-Fi network with "&" in name not appearing
My neighbours' Wi-Fi makes the Wi-Fi panel throw an error:
(gnome-control-center:346639): Gtk-WARNING **: 15:16:21.993: Failed to set text 'Bbox Hugo & Laura' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &amp;

Escape the SSID before using it to set the label.
2022-06-09 20:54:57 +00:00
Quentin PAGÈS
43419403b1 Update Occitan translation 2022-06-09 20:02:53 +00:00
Aleksandr Melman
6b93b355bd Update Russian translation 2022-06-05 12:27:13 +00:00
Fabio Tomat
6cdec6e3a4 Update Friulian translation 2022-06-03 08:20:11 +00:00
Fabio Tomat
e8b24c3d41 Update Friulian translation 2022-06-03 08:18:05 +00:00
Yosef Or Boczko
b76e109857 Update Hebrew translation 2022-06-01 15:30:17 +00:00
Yuri Chornoivan
95d4e664b5 Update Ukrainian translation 2022-06-01 13:12:09 +00:00
Hugo Carvalho
97cec8d167 Update Portuguese translation 2022-06-01 11:07:11 +00:00
Danial Behzadi
e58a80d804 Update Persian translation 2022-06-01 10:03:53 +00:00
Maximiliano Sandoval R
9327bbe759 wifi-connection-list: Add margins and align 2022-06-01 02:17:13 +00:00
Maximiliano Sandoval R
7cb4dc4ff0 network-wifi: Use ListBox in popover
This gives us the correct style on the popover.
2022-06-01 02:17:13 +00:00
Maximiliano Sandoval R
42f64f197f Make buttons in actions rows and header flat 2022-06-01 02:17:13 +00:00
Lukáš Tyrychtr
af197cb813 Add missing a11y labels 2022-05-31 21:08:44 +00:00
Robert Ancell
4f3eb61395 info-overview: Replace deprecated g_spawn_check_exit_status 2022-05-31 15:21:48 +12:00
Robert Ancell
23d70d6952 user-accounts: Replace deprecated g_spawn_check_exit_status 2022-05-31 15:21:37 +12:00
Lukáš Tyrychtr
46932dcffe Fix indent 2022-05-30 22:24:47 +00:00
Lukáš Tyrychtr
fd7691c0b9 Add a missing label to the automatic timezone switch 2022-05-30 22:24:47 +00:00
Yosef Or Boczko
83d27d1081 Update Hebrew translation 2022-05-30 18:22:14 +00:00
Quentin PAGÈS
93e7458569 Update Occitan translation 2022-05-30 16:49:05 +00:00
Aleksandr Melman
e559ecb1b1 Update Russian translation 2022-05-30 16:27:24 +00:00
Jürgen Benvenuti
be6d2e38dd Update German translation 2022-05-30 15:10:26 +00:00
Georges Basile Stavracas Neto
0e8835d18c online-accounts: Print all GLib messages to stderr
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1864
2022-05-29 23:24:46 +00:00
Lukáš Tyrychtr
6f887237fd Add a label to the master mic switch 2022-05-29 23:12:04 +00:00
Lukáš Tyrychtr
666af4ddea Add a missing label 2022-05-29 23:06:33 +00:00
Lukáš Tyrychtr
6388d3715a Add an a11y label to the switch 2022-05-29 23:02:42 +00:00
Danial Behzadi
7eda06f9ee Update Persian translation 2022-05-29 07:54:39 +00:00
Luming Zh
5711ee0ce1 Update Chinese (China) translation 2022-05-28 02:36:23 +00:00
Hugo Carvalho
03f08faf81 Update Portuguese translation 2022-05-27 22:47:43 +00:00
Jan Tojnar
c9448f76c2 region: Fix critical when changing language
Changing user’s language resets the formats (region) by passing `NULL` to `update_region`.
However, updating the region calls `maybe_notify`, whose callback `maybe_notify_finish`
tries to parse the `mnd->target_locale` (the `NULL`), producing a critical:

    GLib-CRITICAL **: g_regex_match_full: assertion 'string != NULL' failed

Since updating the language itself already triggers the notification check,
let’s just skip calling `maybe_notify` here in that case.
2022-05-26 19:05:16 +00:00
Jan Tojnar
7c4428eb59 region: Fix creating rows for locales without country
When creating a language row for Esperanto (eo.UTF-8), gnome-desktop throws a critical:

    gnome_get_country_from_code: assertion 'code != NULL' failed
2022-05-26 19:05:16 +00:00
Lukáš Tyrychtr
eece14f1cd Add a missing a11y label to the search box in the country selection dialog 2022-05-25 23:43:28 +00:00
Robert Ancell
99f27e802f applications: Update snap permissions code to recent changes
Fixes #1845
2022-05-25 23:02:46 +00:00
Yuri Chornoivan
edbc075eb0 Update Ukrainian translation 2022-05-25 18:27:29 +00:00
Georges Basile Stavracas Neto
261545b6cb keyboard: Set mnemonics to header buttons
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1863
2022-05-25 16:41:28 +00:00
Boyuan Yang
b2a3da4927 Update Chinese (China) translation 2022-05-25 16:36:17 +00:00
Felipe Borges
e5dbc0dcc1 appearance: Add "Appearance" keyword to desktop file
With the panel getting renamed from "Background" to "Appearance", users
like myself will start getting accustomed to search for the new term
instead.
2022-05-25 10:09:06 +00:00
Christian Kirbach
aef272e3fa Update German translation
(cherry picked from commit 3b9e94a03f)
2022-05-24 08:40:23 +00:00
Quentin PAGÈS
3088c5f673 Update Occitan translation 2022-05-23 16:56:40 +00:00
Aleksandr Melman
a7287ebecb Update Russian translation 2022-05-23 12:24:26 +00:00
Pawan Chitrakar
de40b25790 Update Nepali translation
(cherry picked from commit 79c2c4578b)
2022-05-22 08:07:34 +00:00
Asier Sarasua Garmendia
2641f68fcc Update Basque translation 2022-05-19 19:57:02 +00:00
Lukáš Tyrychtr
9c54390320 Add missing a11y labels and fix accessibility related markup in UI files in the search panel 2022-05-19 12:05:01 +00:00
Daniel Mustieles
05dc74f120 Updated Spanish translation 2022-05-19 10:35:23 +02:00
Hugo Carvalho
2dd2d2acab Update Portuguese translation 2022-05-18 14:32:21 +00:00
Danial Behzadi
4d8bdd5d52 Update Persian translation 2022-05-18 09:40:58 +00:00
Yuri Chornoivan
f6e6ff30a3 Update Ukrainian translation 2022-05-18 06:24:43 +00:00
Jonas Ådahl
fc984e90a1 display: Show infobar if night light isn't supported
This may be the case on e.g. fully remote / headless sessions, or as of
now, when using the NVIDIA driver to run a Wayland session.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1659
2022-05-17 12:32:48 +02:00
Jonas Ådahl
44293e9db2 display: Add 'NightLightSupported' property support 2022-05-17 12:31:07 +02:00
Robert Ancell
fc1b750f19 applications: Fix CcInfoRow having the wrong parent.
Introduced in 9e38b89752
2022-05-17 12:14:56 +12:00
Changwoo Ryu
afb59388c9 Update Korean translation
(cherry picked from commit a23cd79762)
2022-05-16 12:08:27 +00:00
Fran Dieguez
5137225383 Update Galician translation 2022-05-16 07:59:04 +00:00
Danial Behzadi
bfa06d0978 Update Persian translation 2022-05-16 07:46:03 +00:00
Yuri Chornoivan
a8db661166 Update Ukrainian translation 2022-05-16 07:23:42 +00:00
Robert Ancell
64768de705 keyboard: Fix typo in a11y label 2022-05-16 10:05:29 +12:00
Piotr Drąg
c09c25805b Update POTFILES.in 2022-05-15 13:36:12 +02:00
Felipe Borges
44fdf9a492 sharing: Let GtkWindowControls add its own buttons
On the Verify Encryption dialog we were adding a GtkWindowControls
widget with a button child. This is a misunderstanding of the behavior
of GtkWindowControls, which adds its own buttons to the window.

Let's remove our custom close-button and its callback, since the
previous commit disabled this codepath for hiding the dialog.
2022-05-13 13:18:01 +02:00
Felipe Borges
a701ab0b8b sharing: Set Verify Encryption dialog to "hide-on-close"
This way GtkWindow handles the hiding of the dialog instead of the
callback of the close-button.

Fixes #1832
2022-05-13 13:18:01 +02:00
Ritik Bhandari
46e8eafa92 user-accounts: Fixed typo from "organisation" to "organization" 2022-05-12 23:11:00 +00:00
Ritik Bhandari
8320d17825 region: Fixed typo from "formats is.." to "formats are" 2022-05-12 23:11:00 +00:00
Adrien Plazas
d548309f34 info-overview-panel: Use the external link icon for the updates link
This makes it explicit it opens another application to perform the
action.
2022-05-12 23:04:51 +00:00
Cheng-Chia Tseng
f2402869bb Update Chinese (Taiwan) translation
(cherry picked from commit 4ed667e4e5)
2022-05-12 07:10:40 +00:00
lsnow
1523ab6c6b applications: crash when switching between two apps
The GIcon returned by g_app_info_get_icon() does
not need to be freed.

See: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1817
2022-05-11 12:39:39 +08:00
Robert Ancell
b7302348cf online-accounts: Add CcOnlineAccountRow 2022-05-11 14:51:53 +12:00
Robert Ancell
32a807b964 online-accounts: Add CcOnlineAccountProviderRow 2022-05-11 14:49:12 +12:00
Robert Ancell
7bf240ca3f online-accounts: Use g_autoptr 2022-05-11 14:04:22 +12:00
Robert Ancell
7d4c8346ca online-accounts: Rename panel class to match filename 2022-05-11 14:04:18 +12:00
Jeremy Bicha
f94c96577b sharing: Turn off RDP gsettings key when turning off RDP
Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1825
2022-05-11 00:28:25 +00:00
Robert Ancell
f9fd2587ca printers: Fix missing const on string parameter 2022-05-11 12:16:25 +12:00
Robert Ancell
0118598763 display: Fix typo in a11y attribute 2022-05-11 12:07:31 +12:00
Michael Catanzaro
69f51bdab0 info-overview: add build option to control distributor logo
Currently, we display a 256x256 version of the OS icon from
/etc/os-release. This is too big for my taste, and it's also not
sufficient for distros that want to display a logo that is not an icon.
For instance, because we no longer display the operating system name
immediately beneath the logo, it may be desirable to use a logo variant
that includes text. This patch adds a meson build option that
distributions can use to override the logo, and a second build option to
specify a different logo for use in dark mode.
2022-05-10 23:16:40 +00:00
Bastien Nocera
88f87de748 info-overview: Remove old version.xml loading code 2022-05-10 23:00:59 +00:00
Bastien Nocera
bfc567955f info-overview: Load GNOME version from gnome-shell
See https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5406
2022-05-10 23:00:59 +00:00
Bastien Nocera
d253fe188c info-overview: Add a placeholder while the GNOME version loads 2022-05-10 23:00:59 +00:00
Bastien Nocera
8914fae8da info-overview: Don't load version.xml info we don't use
We don't use the distributor or date info from gnome-desktop's version.xml
so no need to parse it.
2022-05-10 23:00:59 +00:00
Bastien Nocera
95de2049c7 shell: Initialise locale early
Otherwise glib will make internal calls before setlocale is called:
** (process:1124144): WARNING **: 10:16:58.983: dcgettext("(null)", "", 5) called before setlocale()

 #0  0x00007ffff7c80f77 in g_logv () at /lib64/libglib-2.0.so.0
 #1  0x00007ffff7c81233 in g_log () at /lib64/libglib-2.0.so.0
 #2  0x00007ffff7fbb6c6 in dcgettext (__domainname=<optimized out>, __msgid=0x7ffff7ce6c5a "", __category=<optimized out>) at ../../../../Projects/jhbuild/gettext-pseudolocale/gettext-pseudolocale.c:194
 #3  0x00007ffff7c6478e in _g_dgettext_should_translate () at /lib64/libglib-2.0.so.0
 #4  0x00007ffff7c6484b in g_dgettext () at /lib64/libglib-2.0.so.0
 #5  0x00007ffff7e98974 in g_application_class_intern_init () at /lib64/libgio-2.0.so.0
 #6  0x00007ffff7d9cfb8 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #7  0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #8  0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #9  0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #10 0x00007ffff7d8671a in g_object_new_valist () at /lib64/libgobject-2.0.so.0
 #11 0x00007ffff7d867fd in g_object_new () at /lib64/libgobject-2.0.so.0
 #12 0x0000000000449bcc in cc_application_new () at ../../../../Projects/jhbuild/gnome-control-center/shell/cc-application.c:294
 #13 0x0000000000448fa6 in main (argc=1, argv=0x7fffffffd138) at ../../../../Projects/jhbuild/gnome-control-center/shell/main.c:55
2022-05-11 00:36:27 +02:00
Lukáš Tyrychtr
4a421d0abc Ensure that the activatable widgets of the multitasking rows have the proper labels 2022-05-10 22:29:10 +00:00
Lukáš Tyrychtr
e26f28d1fd Add a label to the close notification button in online account settings 2022-05-10 22:19:52 +00:00
Lukáš Tyrychtr
de8d28c3eb Improve accessibility of the power panel 2022-05-10 22:14:35 +00:00
Lukáš Tyrychtr
df30f44709 Fix indent 2022-05-10 21:35:50 +00:00
Lukáš Tyrychtr
450c05471b Label the device name textbox for a11y 2022-05-10 21:35:50 +00:00
Lukáš Tyrychtr
861d762ce5 Address review feedback 2022-05-10 21:26:05 +00:00
Lukáš Tyrychtr
3151598aef Make the network settings panel more screen reader friendly 2022-05-10 21:26:05 +00:00
Lukáš Tyrychtr
46673670d9 Fix indentation 2022-05-10 21:11:57 +00:00
Lukáš Tyrychtr
a477684f20 Improve accessibility of the background panel 2022-05-10 21:11:57 +00:00
Jonas Ådahl
48354fde43 sharing/remote-desktop/fingerprint: Add missing period to string 2022-05-10 20:58:40 +00:00
Jonas Ådahl
6affceebee sharing/remote-desktop: Show toasts when copying 2022-05-10 20:58:40 +00:00
Bastien Nocera
aa7ebe5d7c bluetooth: Add a few edge cases in Bluetooth tester
Use a non-ASCII filename as well as an ampersand, both things that could
cause problems.
2022-05-10 11:03:50 +02:00
Corey Berla
df51bed16c printers: Check for invalid characters in printer names
Currently when you rename a printer through the print details page
there is no indication of errors produced by CUPS, most notable
about any invalid characters used. Adds a function to check
for invalid characters and shows a warning to users.  No
attempt will be made to rename the printer if it contains an
invalid character.  Users are currently shown an elevation prompt
before this fix
https://www.cups.org/doc/man-lpstat.html

Partially addresses #1008
2022-05-10 05:11:51 +00:00
Corey Berla
54341cae07 printers: Add label for invalid characters in printer name
Add a label immediately below the printer name entry in printer
details that warns the user if the printer name contains
invalid characters (or other errors) per the CUPS spec.
2022-05-10 05:11:51 +00:00
Pablo Correa Gómez
b7c545a1e7 printers: Wrap job dialog GtkInfoBar label to fit in narrower screens 2022-05-10 04:37:42 +00:00
Pablo Correa Gómez
92ee00e39b display: Wrap Night Light GtkInfoBar label to fit in narrower screens 2022-05-10 04:37:42 +00:00
Pablo Correa Gómez
42cb548115 common: Wrap CcPermissionInfobar labels to fit in narrower screens 2022-05-10 04:37:42 +00:00
Pablo Correa Gómez
ddfacc6b81 power: Only update ALS state if it has changed
Ambient light sensors can be quite sensitive and the LightLevel
property might be changing very often. That has two undesired
consequences:
* The `als_enabled_state_changed` callback gets constantly called
  due to a change in a property which it does not care about, as
  only `HasAmbientLight` is relevant. Therefore, limit the code
  execution to when something needs to be changed.
* During debugging, the terminal gets spammed with "ALS enabled: on/off"
  messages.
2022-05-10 04:32:12 +00:00
Mohammed Sadiq
1204b91f52 wwan: Use AdwToasts for notifications
AdwToasts replaces the GtkLabel inside revealer for notifications
and this simplifies handling the notifications and the toast-overlay
handles the complexities of when to show/withdraw them, the order
they are displayed, etc.
2022-05-10 04:24:49 +00:00
Mohammed Sadiq
9aff773564 wwan: Strip remote dbus error before it's presented
That's more useful for the users
2022-05-10 04:24:49 +00:00
Mohammed Sadiq
1dccede9a7 wwan: Return "No Error" if error is NULL 2022-05-10 04:24:49 +00:00
Marco Trevisan (Treviño)
adffd7a2df Panels: Update Privacy panels keywords to match specific contents
Ensure we use more specialized keywords for privacy panels, without
repeating the unneeded ones.
2022-05-10 04:18:20 +00:00
Ian Douglas Scott
fbadba1a18 keyboard: Avoid segfault due to no "data" for custom_shortcut_add_row
Ultimately it would be good to get rid of the use of
`g_object_set_data`/`g_object_get_data` here, but this works for now.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1373.
2022-05-10 04:11:57 +00:00
Sebastian Keller
7b1af9c8ba sound: Update theme directory modification time after bell sound changes
The sound plugin of gnome-settings-daemon which flushes the pulseaudio
sample cache does non-recursive monitoring of the sounds directory. If
the custom theme directory used for switching between bell sounds
already exists due to previous bell sound changes, subsequent changes
within that directory will not be noticed. The old bell sample will thus
remain in the cache until the next session restart. Avoid this problem
by manually updating the modification time of the directory.

The alternative solution of adding recursive monitoring to the sound
plugin would require significantly more complicated code as there is no
support for this in glib itself. Given that sound themes never really
caught on and there is an ongoing discussion of removing support for
them entirely, going with this simple solution seems like the better
choice.

Fixes: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/681
2022-05-10 04:05:44 +00:00
Lukáš Tyrychtr
31d6c7704c Add some missing a11y labels in the keyboard panel 2022-05-10 04:00:40 +00:00
Lukáš Tyrychtr
30b6d51c5a Add labels to the toggles in the lock settings 2022-05-10 03:52:51 +00:00
Felipe Borges
0be875c0b0 background: Order background items alphabetically
Except for the "Default Background" which skips the line and gets
shown first.

Fixes #1716
2022-05-10 03:46:33 +00:00
Lukáš Tyrychtr
f7d0aa7a12 Add missing labels 2022-05-10 03:40:47 +00:00
Lukáš Tyrychtr
f1d5215cdd Add an a11y label to the enable switch 2022-05-10 03:31:04 +00:00
Lukáš Tyrychtr
5329a8f942 Fix indent 2022-05-10 03:25:12 +00:00
Lukáš Tyrychtr
e2c8b7d3a4 A missing label in the camera panel 2022-05-10 03:25:12 +00:00
Lukáš Tyrychtr
91b13f4283 Add a few a11y labels to the switches 2022-05-09 13:33:57 +02:00
Aurimas Černius
faa9a7ace4 Updated Lithuanian translation 2022-05-08 22:03:47 +03:00
Emin Tufan Çetin
6129c1ce00 Update Turkish translation 2022-05-07 06:06:20 +00:00
Quentin PAGÈS
1b1b0fc5de Update Occitan translation
(cherry picked from commit 3481206fa9)
2022-05-05 18:04:08 +00:00
Sebastian Keller
5df1519d7d background: Make sure the size of the light/dark previews is the same
Without homogeneous columns the difference in the size of the light/dark
labels could cause one preview to be larger.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1810
2022-05-05 10:13:34 +02:00
Felipe Borges
340ee1dc4a connection-editor: Unparent child widget on dispose
WirelessSecurityWPAEAP is a GtkWidget owned by the CEPage8021xSecurity
widget, which is supposed to "unparent" it on "dispose" (since parents
hold a reference to child widgets). Instead we were calling
g_clear_object on it.

Fixes #1671
2022-05-03 17:45:14 +02:00
Zurab Kargareteli
1abe3c3553 Update Georgian translation 2022-04-28 16:16:06 +00:00
Alexander Shopov
b807f242e6 Update Bulgarian translation
(cherry picked from commit 946919c850)
2022-04-28 12:20:06 +00:00
Danial Behzadi
cea7c82789 Update Persian translation 2022-04-27 09:28:48 +00:00
Danial Behzadi
a556616081 Update Persian translation
(cherry picked from commit 2d263f5ea9)
2022-04-27 09:19:16 +00:00
Robert Ancell
7f77d087f4 sharing: Fix misleading widget name 2022-04-26 21:31:27 +00:00
Anders Jonsson
a89f64dde7 Update Swedish translation 2022-04-26 15:33:18 -03:00
Yuri Chornoivan
b51513e4fa Update Ukrainian translation 2022-04-26 15:23:15 -03:00
Felipe Borges
d8bad3eda1 multitasking: Add some new keywords to desktop file
While searching in the Shell, users might input the keywords "Hot
Corner" and "Workspaces".

Fixes #1784
2022-04-26 15:23:07 -03:00
Michael Catanzaro
62bde81c54 sound: remove dog bark sound theme
You're welcome, internet.
2022-04-26 15:22:05 -03:00
Georges Basile Stavracas Neto
bbe3ae4a91 Switch to 'main' everywhere 2022-04-26 14:43:01 -03:00
Georges Basile Stavracas Neto
0bfb1e8906 Post-branching version bump
Mainline is open for business again
2022-04-26 14:16:07 -03:00
376 changed files with 124062 additions and 58003 deletions

View File

@@ -52,7 +52,7 @@ stages:
# stable branch.
# Could probably also switch away from rawhide,
# to stable fedora branch as well.
FDO_DISTRIBUTION_TAG: '2022-03-29.0-main'
FDO_DISTRIBUTION_TAG: '2022-10-25.0-main'
FDO_DISTRIBUTION_VERSION: rawhide
#############################################
@@ -130,6 +130,7 @@ build.container.fedora@x86_64:
alsa-lib-devel
nss-devel
gcr-devel
setxkbmap
FDO_DISTRIBUTION_EXEC: |-
git clone https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas.git && \
cd gsettings-desktop-schemas && \
@@ -223,6 +224,7 @@ test:
script:
- *environment_information
- *build_procedure
- *run_tests
- |
@@ -247,7 +249,7 @@ coverage:
BUILD_OPTS: "-Db_coverage=true"
coverage: '/^Lines:.\d+.\d+.(\d+\.\d+\%)/'
only:
- master@GNOME/gnome-control-center
- main@GNOME/gnome-control-center
script:
- *environment_information
@@ -287,7 +289,7 @@ pages:
paths:
- public
only:
- master@GNOME/gnome-control-center
- main@GNOME/gnome-control-center
except:
variables:
@@ -301,7 +303,7 @@ pages:
##
flatpak:
stage: manual
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
image: quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master
artifacts:
name: package
paths:
@@ -312,9 +314,7 @@ flatpak:
OLD_APPID: "org.gnome.Settings"
APPID: "org.gnome.SettingsDevel"
BUNDLE: "org.gnome.SettingsDevel.flatpak"
MANIFEST_PATH: "org.gnome.Settings.json"
PATCHES: "build-aux/flatpak/*.patch"
PROJECT_FILE: "build-aux/flatpak/org.gnome.Settings.json"
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Settings.json"
PROJECT_ID: "org.gnome.Settings"
PROJECT_NAME: "gnome-control-center.git"
RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
@@ -322,10 +322,6 @@ flatpak:
script:
- echo "== Flatpak packaging =="
# Move needed files to the root folder
- cp ${PATCHES} . || true
- cp ${PROJECT_FILE} ${MANIFEST_PATH}
# Make it a develoment manifest
- sed -i -n "p; s/$PROJECT_NAME//p" ${MANIFEST_PATH}
- >
@@ -343,7 +339,7 @@ flatpak:
- mv data/icons/hicolor/scalable/apps/$OLD_APPID.svg data/icons/hicolor/scalable/apps/$APPID.svg
- mv data/icons/hicolor/symbolic/apps/$OLD_APPID-symbolic.svg data/icons/hicolor/symbolic/apps/$APPID-symbolic.svg
- flatpak-builder --bundle-sources --repo=devel build ${MANIFEST_PATH}
- flatpak-builder --bundle-sources --disable-rofiles-fuse --repo=devel build ${MANIFEST_PATH}
- flatpak build-bundle devel ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APPID}
cache:
@@ -353,7 +349,7 @@ flatpak:
except:
- tags
- gnome-3-.*
- master@GNOME/gnome-control-center
- main@GNOME/gnome-control-center
# Runs the sanitizers [address, thread, undefined, and memory].

View File

@@ -4,7 +4,7 @@ Not following the communication guidelines [1] will mean your issue or comment
will be removed. Read it carefully before submitting this issue.
[1] https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/docs/CONTRIBUTING.md#communication-guideline
[1] https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/docs/CONTRIBUTING.md#communication-guidelines
-->

View File

@@ -4,7 +4,7 @@ Not following the communication guidelines [1] will mean your issue or comment
will be removed. Read it carefully before submitting this issue.
[1] https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/docs/CONTRIBUTING.md#communication-guideline
[1] https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/docs/CONTRIBUTING.md#communication-guidelines
-->

143
NEWS
View File

@@ -1,3 +1,146 @@
================
Version 43.2
================
- Updated translations
About
- Update distro logo when dark-mode changes
Applications
- Don't recurse into symlinks when clearing cache
Cellular
- Avoid duplicated entries in SIM providers list
Color
- Fix crash when first device row is non-existent
Common
- Make list row switches work when annimations are OFF
Display
- Allow the Night Light error label to wrap for small screens
Mouse
- Fix activation of rows while navigating with keyboard
Network
- Fix crashes when EAP password is missing
- Fix wrong signal of SEA password visibility toggle
Notifications
- Sync lock screen notification setting string
Users
- Show a missing-avatar image when avatars cannot be loaded
================
Version 43.1
================
- Updated translations
Network
- Fix crashes editing networks
Power
- Don't assert if we can't find the widget for a profile
Printers
- Small visual improvements
================
Version 43.0
================
- Updated translations
================
Version 43.rc
================
- Fix initial AM/PM label value
- Remove no longer used icon
- Select panel only if non-folded when search is canceled
- Updated translations
Appearance
- Allow backgrounds to use any image format
Device Security
- Several UI improvements
Display
- Fix primary monitor selection
Info
- Improve dark theme support
Keyboard
- Fix activation of input source toggle button
- Improve handling of Shift shortcuts
Power
- Fix blank screen and power button behavior settings
Printers
- Show empty state after removing last printer
Search
- Fix Move Up and Move Down actions
Sound
- Fix sound alert selection
Wacom
- Better support Wacom Express Key Remote
================
Version 43.beta
================
- Updated translations
Cellular
- Add WWAN 5G connection support
Device Security
- Polish failure messages
- Various style updates
Display
- Support privacy screens
Info
- Show build id in a separate row
Network
- Fix VPN empty state
Sound
- Update default sounds
User Accounts
- Fix back button not appearing sometimes
================
Version 43.alpha
================
- Improved accessibility in various panels
- New Device Security panel
- Updated translations
Date & Time
- Update visual style of the timezone map
Display
- Various visual improvements
Sound
- Remove dog barking sounds
================
Version 42.1
================

View File

@@ -1,6 +1,6 @@
[![Build Status](https://gitlab.gnome.org/GNOME/gnome-control-center/badges/master/pipeline.svg)](https://gitlab.gnome.org/GNOME/gnome-control-center/pipelines)
[![Coverage report](https://gitlab.gnome.org/GNOME/gnome-control-center/badges/master/coverage.svg)](https://gnome.pages.gitlab.gnome.org/gnome-control-center/)
[![License](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/COPYING)
[![Build Status](https://gitlab.gnome.org/GNOME/gnome-control-center/badges/main/pipeline.svg)](https://gitlab.gnome.org/GNOME/gnome-control-center/pipelines)
[![Coverage report](https://gitlab.gnome.org/GNOME/gnome-control-center/badges/main/coverage.svg)](https://gnome.pages.gitlab.gnome.org/gnome-control-center/)
[![License](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/COPYING)
GNOME Settings
====================
@@ -60,4 +60,4 @@ Note that GNOME Settings Flatpak will only work if you are running
the latest GNOME version in your host system.
[communication-guidelines]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/docs/CONTRIBUTING.md#communication-guidelines
[communication-guidelines]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/docs/CONTRIBUTING.md#communication-guidelines

View File

@@ -1 +0,0 @@
meson.add_install_script('meson/meson_post_install.py', control_center_datadir)

View File

@@ -1,15 +0,0 @@
#!/usr/bin/env python3
import os
import subprocess
import sys
gsettingsschemadir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas')
icondir = os.path.join(sys.argv[1], 'icons', 'hicolor')
if not os.environ.get('DESTDIR'):
print('Compiling gsettings schemas...')
subprocess.call(['glib-compile-schemas', gsettingsschemadir])
print('Update icon cache...')
subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])

View File

@@ -66,7 +66,7 @@ size, disability, ethnicity, gender identity and expression, level of experience
nationality, personal appearance, race, religion, or sexual identity and
orientation.
### Communication Guideline
### Communication Guidelines
It is of ultimate importance to maintain a community in which everyone feels free to express
themselves, review, and comment on each others ideas, both technical and otherwise. Correspondingly,
@@ -209,4 +209,4 @@ available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
[maintainers]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/docs/MAINTAINERS.md
[maintainers]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/docs/MAINTAINERS.md

View File

@@ -50,7 +50,7 @@ by being explicit. Suggested acceptance phrase:
Urgency commits should never happen, but in case they're needed, they are defined by the following
criteria:
* On stable branches (or master right after a stable release)
* On stable branches (or `main` right after a stable release)
* Symptoms:
* Always OR often reproducible; AND
* Crash; OR
@@ -59,4 +59,4 @@ criteria:
* Quickly followed by an emergency release (at most 2 days after the commit)
[doap]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/gnome-control-center.doap
[doap]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/gnome-control-center.doap

View File

@@ -1,8 +1,8 @@
project(
'gnome-control-center', 'c',
version : '42.2',
version : '43.2',
license : 'GPL2+',
meson_version : '>= 0.53.0'
meson_version : '>= 0.57.0'
)
control_center_prefix = get_option('prefix')
@@ -50,6 +50,17 @@ foreach define: set_defines
config_h.set_quoted(define[0], define[1])
endforeach
distributor_logo = get_option('distributor_logo')
if (distributor_logo != '')
config_h.set_quoted('DISTRIBUTOR_LOGO', distributor_logo,
description: 'Define to absolute path of distributor logo')
dark_mode_distributor_logo = get_option('dark_mode_distributor_logo')
if (dark_mode_distributor_logo != '')
config_h.set_quoted('DARK_MODE_DISTRIBUTOR_LOGO', dark_mode_distributor_logo,
description: 'Define to absolute path of distributor logo for use in dark mode')
endif
endif
# meson does not support octal values, so it must be handled as a
# string. See: https://github.com/mesonbuild/meson/issues/2047
config_h.set('USER_DIR_MODE', '0700',
@@ -104,7 +115,7 @@ pulse_req_version = '>= 2.0'
libadwaita_dep = dependency(
'libadwaita-1',
version: '>= 1.1',
version: '>= 1.2.alpha',
fallback: ['libadwaita', 'libadwaita_dep'],
default_options: ['examples=false', 'introspection=disabled', 'tests=false', 'vapi=false'],
)
@@ -113,7 +124,7 @@ accounts_dep = dependency('accountsservice', version: '>= 0.6.39')
colord_dep = dependency('colord', version: '>= 0.1.34')
gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0', version: '>= 2.23.0')
gio_dep = dependency('gio-2.0')
glib_dep = dependency('glib-2.0', version: '>= 2.68.0')
glib_dep = dependency('glib-2.0', version: '>= 2.70.0')
gnome_desktop_dep = dependency('gnome-desktop-4')
gnome_bg_dep = dependency('gnome-bg-4')
gnome_rr_dep = dependency('gnome-rr-4')
@@ -270,7 +281,6 @@ install_subdir(
top_inc = include_directories('.')
shell_inc = include_directories('shell')
subdir('build-aux')
subdir('data/icons')
subdir('po')
subdir('panels')
@@ -285,6 +295,11 @@ if get_option('documentation')
subdir('man')
endif
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
)
configure_file(
output: 'config.h',
configuration: config_h

View File

@@ -7,3 +7,5 @@ option('tracing', type: 'boolean', value: false, description: 'add extra debuggi
option('wayland', type: 'boolean', value: true, description: 'build with Wayland support')
option('profile', type: 'combo', choices: ['default','development'], value: 'default')
option('malcontent', type: 'boolean', value: false, description: 'build with malcontent support')
option('distributor_logo', type: 'string', description: 'absolute path to distributor logo for the About panel')
option('dark_mode_distributor_logo', type: 'string', description: 'absolute path to distributor logo dark mode variant')

View File

@@ -92,10 +92,11 @@ struct _CcApplicationsPanel
GtkWidget *settings_box;
GtkButton *install_button;
GtkWidget *integration_section;
AdwPreferencesGroup *integration_section;
CcToggleRow *notification;
CcToggleRow *background;
CcToggleRow *wallpaper;
CcToggleRow *screenshot;
CcToggleRow *sound;
CcInfoRow *no_sound;
CcToggleRow *search;
@@ -111,6 +112,9 @@ struct _CcApplicationsPanel
GtkDialog *builtin_dialog;
AdwPreferencesGroup *builtin_group;
GtkListBox *builtin_list;
#ifdef HAVE_SNAP
GList *snap_permission_rows;
#endif
GtkButton *handler_reset;
GtkDialog *handler_dialog;
@@ -512,6 +516,37 @@ wallpaper_cb (CcApplicationsPanel *self)
set_wallpaper_allowed (self, cc_toggle_row_get_allowed (self->wallpaper));
}
/* --- screenshot --- */
static void
get_screenshot_allowed (CcApplicationsPanel *self,
const gchar *app_id,
gboolean *set,
gboolean *allowed)
{
g_auto(GStrv) perms = get_portal_permissions (self, "screenshot", "screenshot", app_id);
*set = perms != NULL;
*allowed = perms == NULL || strcmp (perms[0], "no") != 0;
}
static void
set_screenshot_allowed (CcApplicationsPanel *self,
gboolean allowed)
{
const gchar *perms[2] = { NULL, NULL };
perms[0] = allowed ? "yes" : "no";
set_portal_permissions (self, "screenshot", "screenshot", self->current_app_id, perms);
}
static void
screenshot_cb (CcApplicationsPanel *self)
{
if (self->current_app_id)
set_screenshot_allowed (self, cc_toggle_row_get_allowed (self->screenshot));
}
/* --- shortcuts permissions (flatpak) --- */
static void
@@ -541,7 +576,7 @@ set_shortcuts_allowed (CcApplicationsPanel *self,
/* "GRANTED" and "DENIED" here match the values set by the "inhibit shortcut
* dialog" is GNOME Shell:
* https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/js/ui/inhibitShortcutsDialog.js
* https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/inhibitShortcutsDialog.js
*/
perms[0] = granted ? "GRANTED" : "DENIED";
perms[1] = NULL;
@@ -650,20 +685,11 @@ location_cb (CcApplicationsPanel *self)
static void
remove_snap_permissions (CcApplicationsPanel *self)
{
g_autoptr(GList) rows = NULL;
GList *link;
GList *l;
rows = gtk_container_get_children (GTK_CONTAINER (self->permission_list));
for (link = rows; link; link = link->next)
{
GtkWidget *row = link->data;
if (row == GTK_WIDGET (self->builtin))
break;
if (CC_IS_SNAP_ROW (row))
gtk_container_remove (GTK_CONTAINER (self->permission_list), GTK_WIDGET (row));
}
for (l = self->snap_permission_rows; l; l = l->next)
adw_preferences_group_remove (self->integration_section, l->data);
g_clear_pointer (&self->snap_permission_rows, g_list_free);
}
static gboolean
@@ -672,8 +698,6 @@ add_snap_permissions (CcApplicationsPanel *self,
const gchar *app_id)
{
const gchar *snap_name;
g_autoptr(GList) rows = NULL;
gint index;
g_autoptr(SnapdClient) client = NULL;
g_autoptr(GPtrArray) interfaces = NULL;
g_autoptr(GPtrArray) plugs = NULL;
@@ -687,10 +711,6 @@ add_snap_permissions (CcApplicationsPanel *self,
return FALSE;
snap_name = app_id + strlen (PORTAL_SNAP_PREFIX);
rows = gtk_container_get_children (GTK_CONTAINER (self->permission_list));
index = g_list_index (rows, self->builtin);
g_assert (index >= 0);
client = snapd_client_new ();
interfaces = snapd_client_get_interfaces2_sync (client,
@@ -753,9 +773,8 @@ add_snap_permissions (CcApplicationsPanel *self,
}
row = cc_snap_row_new (cc_panel_get_cancellable (CC_PANEL (self)), interface, plug, available_slots);
gtk_widget_show (GTK_WIDGET (row));
gtk_list_box_insert (GTK_LIST_BOX (self->permission_list), GTK_WIDGET (row), index);
index++;
adw_preferences_group_add (self->integration_section, GTK_WIDGET (row));
self->snap_permission_rows = g_list_prepend (self->snap_permission_rows, row);
added++;
}
@@ -846,7 +865,7 @@ static void
update_header_section (CcApplicationsPanel *self,
GAppInfo *info)
{
g_autoptr(GIcon) icon = NULL;
GIcon *icon;
icon = g_app_info_get_icon (info);
gtk_image_set_from_gicon (self->app_icon_image, icon);
@@ -885,6 +904,10 @@ update_integration_section (CcApplicationsPanel *self,
gtk_widget_hide (GTK_WIDGET (self->shortcuts));
}
#ifdef HAVE_SNAP
remove_snap_permissions (self);
#endif
if (portal_app_id != NULL)
{
g_clear_object (&self->notification_settings);
@@ -903,6 +926,11 @@ update_integration_section (CcApplicationsPanel *self,
gtk_widget_set_visible (GTK_WIDGET (self->wallpaper), set);
has_any |= set;
get_screenshot_allowed (self, portal_app_id, &set, &allowed);
cc_toggle_row_set_allowed (self->screenshot, allowed);
gtk_widget_set_visible (GTK_WIDGET (self->screenshot), set);
has_any |= set;
disabled = g_settings_get_boolean (self->privacy_settings, "disable-sound-output");
get_device_allowed (self, "speakers", portal_app_id, &set, &allowed);
cc_toggle_row_set_allowed (self->sound, allowed);
@@ -931,7 +959,6 @@ update_integration_section (CcApplicationsPanel *self,
has_any |= set;
#ifdef HAVE_SNAP
remove_snap_permissions (self);
has_any |= add_snap_permissions (self, info, portal_app_id);
#endif
}
@@ -945,6 +972,7 @@ update_integration_section (CcApplicationsPanel *self,
gtk_widget_hide (GTK_WIDGET (self->background));
gtk_widget_hide (GTK_WIDGET (self->wallpaper));
gtk_widget_hide (GTK_WIDGET (self->screenshot));
gtk_widget_hide (GTK_WIDGET (self->sound));
gtk_widget_hide (GTK_WIDGET (self->no_sound));
gtk_widget_hide (GTK_WIDGET (self->camera));
@@ -955,7 +983,7 @@ update_integration_section (CcApplicationsPanel *self,
gtk_widget_hide (GTK_WIDGET (self->no_location));
}
gtk_widget_set_visible (self->integration_section, has_any);
gtk_widget_set_visible (GTK_WIDGET (self->integration_section), has_any);
}
/* --- handler section --- */
@@ -1220,7 +1248,7 @@ update_total_size (CcApplicationsPanel *self)
g_object_set (self->total, "info", formatted_size, NULL);
/* Translators: '%s' is the formatted size, e.g. "26.2 MB" */
subtitle = g_strdup_printf (_("%s of disk space used"), formatted_size);
subtitle = g_strdup_printf (_("%s of disk space used."), formatted_size);
g_object_set (self->storage, "subtitle", subtitle, NULL);
}
@@ -1610,6 +1638,9 @@ cc_applications_panel_dispose (GObject *object)
CcApplicationsPanel *self = CC_APPLICATIONS_PANEL (object);
remove_all_handler_rows (self);
#ifdef HAVE_SNAP
remove_snap_permissions (self);
#endif
g_clear_object (&self->monitor);
g_clear_object (&self->perm_store);
@@ -1751,6 +1782,7 @@ cc_applications_panel_class_init (CcApplicationsPanelClass *klass)
gtk_widget_class_bind_template_child (widget_class, CcApplicationsPanel, notification);
gtk_widget_class_bind_template_child (widget_class, CcApplicationsPanel, background);
gtk_widget_class_bind_template_child (widget_class, CcApplicationsPanel, wallpaper);
gtk_widget_class_bind_template_child (widget_class, CcApplicationsPanel, screenshot);
gtk_widget_class_bind_template_child (widget_class, CcApplicationsPanel, shortcuts);
gtk_widget_class_bind_template_child (widget_class, CcApplicationsPanel, sidebar_box);
gtk_widget_class_bind_template_child (widget_class, CcApplicationsPanel, sidebar_listbox);
@@ -1772,6 +1804,7 @@ cc_applications_panel_class_init (CcApplicationsPanelClass *klass)
gtk_widget_class_bind_template_callback (widget_class, notification_cb);
gtk_widget_class_bind_template_callback (widget_class, background_cb);
gtk_widget_class_bind_template_callback (widget_class, wallpaper_cb);
gtk_widget_class_bind_template_callback (widget_class, screenshot_cb);
gtk_widget_class_bind_template_callback (widget_class, shortcuts_cb);
gtk_widget_class_bind_template_callback (widget_class, privacy_link_cb);
gtk_widget_class_bind_template_callback (widget_class, sound_cb);

View File

@@ -130,11 +130,18 @@
</child>
<child>
<object class="CcToggleRow" id="background">
<property name="title" translatable="yes">Run in background</property>
<property name="title" translatable="yes">Run in Background</property>
<property name="subtitle" translatable="yes">Allow activity when the app is closed.</property>
<signal name="notify::allowed" handler="background_cb" swapped="yes"/>
</object>
</child>
<child>
<object class="CcToggleRow" id="screenshot">
<property name="title" translatable="yes">Screenshots</property>
<property name="subtitle" translatable="yes">Take pictures of the screen at any time.</property>
<signal name="notify::allowed" handler="screenshot_cb" object="CcApplicationsPanel" swapped="yes"/>
</object>
</child>
<child>
<object class="CcToggleRow" id="wallpaper">
<property name="title" translatable="yes">Change Wallpaper</property>

View File

@@ -26,7 +26,7 @@
struct _CcInfoRow
{
GtkListBoxRow parent;
AdwActionRow parent;
GtkWidget *info;
GtkWidget *expander;

View File

@@ -26,9 +26,8 @@
struct _CcSnapRow
{
GtkListBoxRow parent;
AdwActionRow parent;
GtkLabel *title_label;
GtkSwitch *slot_toggle;
GtkComboBox *slots_combo;
GtkListStore *slots_combo_model;
@@ -40,7 +39,7 @@ struct _CcSnapRow
GPtrArray *slots;
};
G_DEFINE_TYPE (CcSnapRow, cc_snap_row, GTK_TYPE_LIST_BOX_ROW)
G_DEFINE_TYPE (CcSnapRow, cc_snap_row, ADW_TYPE_ACTION_ROW)
typedef struct
{
@@ -245,7 +244,6 @@ cc_snap_row_class_init (CcSnapRowClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/applications/cc-snap-row.ui");
gtk_widget_class_bind_template_child (widget_class, CcSnapRow, title_label);
gtk_widget_class_bind_template_child (widget_class, CcSnapRow, slot_toggle);
gtk_widget_class_bind_template_child (widget_class, CcSnapRow, slots_combo);
gtk_widget_class_bind_template_child (widget_class, CcSnapRow, slots_combo_model);
@@ -295,7 +293,7 @@ cc_snap_row_new (GCancellable *cancellable, SnapdInterface *interface, SnapdPlug
label = snapd_interface_make_label (interface);
else
label = g_strdup (snapd_plug_get_interface (plug));
gtk_label_set_label (self->title_label, label);
adw_preferences_row_set_title (ADW_PREFERENCES_ROW (self), label);
/* Add option into combo box */
gtk_list_store_append (self->slots_combo_model, &iter);

View File

@@ -20,13 +20,13 @@
#pragma once
#include <gtk/gtk.h>
#include <adwaita.h>
#include <snapd-glib/snapd-glib.h>
G_BEGIN_DECLS
#define CC_TYPE_SNAP_ROW (cc_snap_row_get_type())
G_DECLARE_FINAL_TYPE (CcSnapRow, cc_snap_row, CC, SNAP_ROW, GtkListBoxRow)
G_DECLARE_FINAL_TYPE (CcSnapRow, cc_snap_row, CC, SNAP_ROW, AdwActionRow)
CcSnapRow* cc_snap_row_new (GCancellable *cancellable,
SnapdInterface *interface,

View File

@@ -8,45 +8,27 @@
<column type="gchararray"/>
</columns>
</object>
<template class="CcSnapRow" parent="GtkListBoxRow">
<property name="visible">True</property>
<template class="CcSnapRow" parent="AdwActionRow">
<property name="can-focus">True</property>
<property name="activatable">False</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="border-width">12</property>
<property name="spacing">12</property>
<object class="GtkSwitch" id="slot_toggle">
<property name="valign">center</property>
<signal name="notify::active" handler="switch_changed_cb" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkComboBox" id="slots_combo">
<property name="valign">center</property>
<property name="model">slots_combo_model</property>
<signal name="changed" handler="combo_changed_cb" swapped="yes"/>
<child>
<object class="GtkLabel" id="title_label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="hexpand">1</property>
<object class="GtkCellRendererText">
<property name="ellipsize">end</property>
</object>
</child>
<child>
<object class="GtkSwitch" id="slot_toggle">
<property name="visible">True</property>
<property name="valign">center</property>
<signal name="notify::active" handler="switch_changed_cb" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkComboBox" id="slots_combo">
<property name="visible">True</property>
<property name="valign">center</property>
<property name="model">slots_combo_model</property>
<signal name="changed" handler="combo_changed_cb" swapped="yes"/>
<child>
<object class="GtkCellRendererText">
<property name="ellipsize">end</property>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
</child>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
</child>
</object>
</child>

View File

@@ -11,6 +11,6 @@ NoDisplay=true
StartupNotify=true
Categories=GNOME;GTK;Settings;DesktopSettings;X-GNOME-Settings-Panel;X-GNOME-AccountSettings;
OnlyShowIn=GNOME;Unity;
# Translators: Search terms to find the Privacy panel. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
# Translators: Search terms to find the Applications panel. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=application;flatpak;permission;setting;
X-GNOME-ControlCenter-HasSidebar=true

View File

@@ -53,7 +53,7 @@ file_remove_thread_func (GTask *task,
GFile *file = source_object;
g_autofree gchar *path = g_file_get_path (file);
nftw (path, ftw_remove_cb, 20, FTW_DEPTH);
nftw (path, ftw_remove_cb, 20, FTW_PHYS | FTW_DEPTH);
if (g_task_set_return_on_cancel (task, FALSE))
g_task_return_boolean (task, TRUE);

View File

@@ -41,17 +41,6 @@ struct _BgRecentSource
G_DEFINE_TYPE (BgRecentSource, bg_recent_source, BG_TYPE_SOURCE)
static const gchar * const content_types[] = {
"image/png",
"image/jp2",
"image/jpeg",
"image/bmp",
"image/svg+xml",
"image/x-portable-anymap",
NULL
};
static int
sort_func (gconstpointer a,
gconstpointer b,
@@ -89,7 +78,7 @@ add_file_from_info (BgRecentSource *self,
content_type = g_file_info_get_content_type (info);
mtime = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED);
if (!content_type || !g_strv_contains (content_types, content_type))
if (!content_type || !g_content_type_is_a (content_type, "image/*"))
return;
uri = g_file_get_uri (file);

View File

@@ -35,6 +35,32 @@ struct _BgWallpapersSource
G_DEFINE_TYPE (BgWallpapersSource, bg_wallpapers_source, BG_TYPE_SOURCE)
static int
sort_func (gconstpointer a,
gconstpointer b,
gpointer user_data)
{
CcBackgroundItem *item_a;
CcBackgroundItem *item_b;
const char *name_a;
const char *name_b;
item_a = (CcBackgroundItem *) a;
item_b = (CcBackgroundItem *) b;
name_a = cc_background_item_get_name (item_a);
name_b = cc_background_item_get_name (item_b);
if (name_a && strcmp (name_a, "Default Background") == 0)
return -1;
if (name_b && strcmp (name_b, "Default Background") == 0)
return 1;
return strcmp (cc_background_item_get_name (item_a),
cc_background_item_get_name (item_b));
}
static void
load_wallpapers (gchar *key,
CcBackgroundItem *item,
@@ -48,7 +74,7 @@ load_wallpapers (gchar *key,
if (deleted)
return;
g_list_store_append (store, item);
g_list_store_insert_sorted (store, item, sort_func, NULL);
}
static void

View File

@@ -157,6 +157,11 @@ create_widget_func (gpointer model_item,
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), check);
if (button)
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), button);
gtk_accessible_update_property (GTK_ACCESSIBLE (overlay),
GTK_ACCESSIBLE_PROPERTY_LABEL,
cc_background_item_get_name (item),
-1);
child = gtk_flow_box_child_new ();
gtk_widget_set_halign (child, GTK_ALIGN_CENTER);
@@ -315,6 +320,7 @@ cc_background_chooser_select_file (CcBackgroundChooser *self)
filter = gtk_file_filter_new ();
gtk_file_filter_add_pixbuf_formats (filter);
gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (filechooser), filter);
gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (filechooser), TRUE);
pictures_folder = g_file_new_for_path (g_get_user_special_dir (G_USER_DIRECTORY_PICTURES));
gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (filechooser),

View File

@@ -63,9 +63,9 @@ struct _CcBackgroundPanel
CcBackgroundItem *current_background;
CcBackgroundChooser *background_chooser;
CcBackgroundPreview *light_preview;
CcBackgroundPreview *default_preview;
CcBackgroundPreview *dark_preview;
GtkToggleButton *light_toggle;
GtkToggleButton *default_toggle;
GtkToggleButton *dark_toggle;
};
@@ -84,7 +84,7 @@ load_custom_css (CcBackgroundPanel *self)
}
static void
reload_light_dark_toggles (CcBackgroundPanel *self)
reload_color_scheme_toggles (CcBackgroundPanel *self)
{
GDesktopColorScheme scheme;
@@ -92,7 +92,7 @@ reload_light_dark_toggles (CcBackgroundPanel *self)
if (scheme == G_DESKTOP_COLOR_SCHEME_DEFAULT)
{
gtk_toggle_button_set_active (self->light_toggle, TRUE);
gtk_toggle_button_set_active (self->default_toggle, TRUE);
}
else if (scheme == G_DESKTOP_COLOR_SCHEME_PREFER_DARK)
{
@@ -100,7 +100,7 @@ reload_light_dark_toggles (CcBackgroundPanel *self)
}
else
{
gtk_toggle_button_set_active (self->light_toggle, FALSE);
gtk_toggle_button_set_active (self->default_toggle, FALSE);
gtk_toggle_button_set_active (self->dark_toggle, FALSE);
}
}
@@ -149,9 +149,9 @@ set_color_scheme (CcBackgroundPanel *self,
/* Color schemes */
static void
on_light_dark_toggle_active_cb (CcBackgroundPanel *self)
on_color_scheme_toggle_active_cb (CcBackgroundPanel *self)
{
if (gtk_toggle_button_get_active (self->light_toggle))
if (gtk_toggle_button_get_active (self->default_toggle))
set_color_scheme (self, G_DESKTOP_COLOR_SCHEME_DEFAULT);
else if (gtk_toggle_button_get_active (self->dark_toggle))
set_color_scheme (self, G_DESKTOP_COLOR_SCHEME_PREFER_DARK);
@@ -182,7 +182,7 @@ update_preview (CcBackgroundPanel *panel)
CcBackgroundItem *current_background;
current_background = panel->current_background;
cc_background_preview_set_item (panel->light_preview, current_background);
cc_background_preview_set_item (panel->default_preview, current_background);
cc_background_preview_set_item (panel->dark_preview, current_background);
}
@@ -389,12 +389,12 @@ cc_background_panel_class_init (CcBackgroundPanelClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/background/cc-background-panel.ui");
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, background_chooser);
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, light_preview);
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, default_preview);
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, dark_preview);
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, light_toggle);
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, default_toggle);
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, dark_toggle);
gtk_widget_class_bind_template_callback (widget_class, on_light_dark_toggle_active_cb);
gtk_widget_class_bind_template_callback (widget_class, on_color_scheme_toggle_active_cb);
gtk_widget_class_bind_template_callback (widget_class, on_chooser_background_chosen_cb);
gtk_widget_class_bind_template_callback (widget_class, on_add_picture_button_clicked_cb);
}
@@ -433,11 +433,11 @@ cc_background_panel_init (CcBackgroundPanel *panel)
g_signal_connect_object (panel->settings, "changed", G_CALLBACK (on_settings_changed), panel, G_CONNECT_SWAPPED);
/* Interface settings */
reload_light_dark_toggles (panel);
reload_color_scheme_toggles (panel);
g_signal_connect_object (panel->interface_settings,
"changed::" INTERFACE_COLOR_SCHEME_KEY,
G_CALLBACK (reload_light_dark_toggles),
G_CALLBACK (reload_color_scheme_toggles),
panel,
G_CONNECT_SWAPPED);

View File

@@ -18,6 +18,7 @@
<property name="tightening_threshold">300</property>
<child>
<object class="GtkGrid">
<property name="column-homogeneous">True</property>
<property name="column-spacing">24</property>
<property name="row-spacing">12</property>
<property name="margin-start">12</property>
@@ -26,10 +27,13 @@
<property name="margin-bottom">12</property>
<property name="hexpand">True</property>
<child>
<object class="GtkToggleButton" id="light_toggle">
<signal name="notify::active" handler="on_light_dark_toggle_active_cb" swapped="true"/>
<object class="GtkToggleButton" id="default_toggle">
<accessibility>
<relation name="labelled-by">default_label</relation>
</accessibility>
<signal name="notify::active" handler="on_color_scheme_toggle_active_cb" swapped="true"/>
<child>
<object class="CcBackgroundPreview" id="light_preview"/>
<object class="CcBackgroundPreview" id="default_preview"/>
</child>
<style>
<class name="background-preview-button"/>
@@ -41,8 +45,8 @@
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Light</property>
<object class="GtkLabel" id="default_label">
<property name="label" translatable="yes">Default</property>
<layout>
<property name="column">0</property>
<property name="row">1</property>
@@ -51,8 +55,11 @@
</child>
<child>
<object class="GtkToggleButton" id="dark_toggle">
<property name="group">light_toggle</property>
<signal name="notify::active" handler="on_light_dark_toggle_active_cb" swapped="true"/>
<property name="group">default_toggle</property>
<accessibility>
<relation name="labelled-by">dark_label</relation>
</accessibility>
<signal name="notify::active" handler="on_color_scheme_toggle_active_cb" swapped="true"/>
<child>
<object class="CcBackgroundPreview" id="dark_preview">
<property name="is-dark">True</property>
@@ -68,7 +75,7 @@
</object>
</child>
<child>
<object class="GtkLabel">
<object class="GtkLabel" id="dark_label">
<property name="label" translatable="yes">Dark</property>
<layout>
<property name="column">1</property>

View File

@@ -11,4 +11,4 @@ StartupNotify=true
Categories=GNOME;GTK;Settings;DesktopSettings;X-GNOME-Settings-Panel;X-GNOME-PersonalizationSettings;
OnlyShowIn=GNOME;
# Translators: Search terms to find the Appearance panel. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=Background;Wallpaper;Screen;Desktop;Style;Light;Dark;
Keywords=Background;Wallpaper;Screen;Desktop;Style;Light;Dark;Appearance;

View File

@@ -12,7 +12,6 @@ background-preview .window {
background-preview .window .header-bar {
min-height: 15px;
box-shadow: inset 0 -1px @borders;
}
background-preview .window.light {
@@ -20,6 +19,10 @@ background-preview .window.light {
color: alpha(black, .8);
}
background-preview .window.light .header-bar {
box-shadow: inset 0 -1px alpha(black, .07);
}
background-preview .window.front.light .header-bar {
background-color: #ebebeb;
}
@@ -29,6 +32,10 @@ background-preview .window.dark {
color: white;
}
background-preview .window.dark .header-bar {
box-shadow: inset 0 -1px alpha(black, .36);
}
background-preview .window.front.dark .header-bar {
background-color: #303030;
}

View File

@@ -117,8 +117,8 @@ class GccDBusTestCase(DBusTestCase):
adapter.UpdateProperties('org.bluez.Adapter1',
{'Powered': dbus.Boolean(self.hci0_powered, variant_level=1)})
self.devices = []
self.add_device('hci0', '22:33:44:55:66:77', "Bastien's mouse", True, 0x580, 'input-mouse')
self.add_device('hci0', '22:33:44:55:66:78', 'Bloutouf keyboard', True, 0x540, 'input-keyboard')
self.add_device('hci0', '22:33:44:55:66:77', "Bastienʼs mouse", True, 0x580, 'input-mouse')
self.add_device('hci0', '22:33:44:55:66:78', 'Bloutouf keyboard & keys', True, 0x540, 'input-keyboard')
self.add_device('hci0', '60:8B:0E:55:66:79', 'iPhoone 19S', True, 0x20C, 'phone')
# Uncategorised audio device
self.add_device('hci0', '22:33:44:55:66:79', 'MEGA Speakers', True, 0x200400, 'audio-card')

View File

@@ -7,6 +7,9 @@
<child>
<object class="GtkSwitch" id="enable_switch">
<property name="valign">center</property>
<accessibility>
<property name="label" translatable="yes">Enable</property>
</accessibility>
<signal name="state-set" handler="enable_switch_state_set_cb" object="CcBluetoothPanel" swapped="yes"/>
</object>
</child>

View File

@@ -4,6 +4,9 @@
<child type="titlebar-end">
<object class="GtkSwitch" id="main_switch">
<accessibility>
<property name="label" translatable="yes">Enable</property>
</accessibility>
<property name="valign">center</property>
</object>
</child>

View File

@@ -15,5 +15,5 @@ X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-control-center
X-GNOME-Bugzilla-Component=privacy
X-GNOME-Bugzilla-Version=@VERSION@
# Translators: Search terms to find the Privacy panel. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=screen;lock;diagnostics;crash;private;recent;temporary;tmp;index;name;network;identity;
# Translators: Search terms to find the Camera panel. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=camera;photos;video;webcam;lock;private;privacy;

View File

@@ -603,96 +603,6 @@ cc_color_calibrate_cancel (CcColorCalibrate *calibrate)
g_main_loop_quit (calibrate->loop);
}
static gboolean
cc_color_calibrate_move_and_resize_window (GtkWindow *window,
CdDevice *device,
GError **error)
{
g_autoptr(GListModel) monitors = NULL;
g_autoptr(GdkMonitor) monitor = NULL;
const gchar *xrandr_name;
gboolean ret = TRUE;
GdkRectangle rect;
GdkDisplay *display;
gint i;
gint monitor_num = -1;
gint num_monitors;
/* find the monitor num of the device output */
display = gdk_display_get_default ();
monitors = gdk_display_get_monitors (display);
num_monitors = g_list_model_get_n_items (monitors);
xrandr_name = cd_device_get_metadata_item (device, CD_DEVICE_METADATA_XRANDR_NAME);
for (i = 0; i < num_monitors; i++)
{
g_autoptr(GdkMonitor) m = NULL;
const gchar *plug_name;
m = g_list_model_get_item (monitors, i);
plug_name = gdk_monitor_get_model (m);
if (g_strcmp0 (plug_name, xrandr_name) == 0)
monitor_num = i;
}
if (monitor_num == -1)
{
ret = FALSE;
g_set_error (error,
CD_SESSION_ERROR,
CD_SESSION_ERROR_INTERNAL,
"failed to find output %s",
xrandr_name);
goto out;
}
/* move the window, and set it to the right size */
monitor = g_list_model_get_item (monitors, monitor_num);
gdk_monitor_get_geometry (monitor, &rect);
g_debug ("Setting window to %ix%i with size %ix%i",
rect.x, rect.y, rect.width, rect.height);
out:
return ret;
}
#if 0
static void
cc_color_calibrate_window_realize_cb (CcColorCalibrate *self)
{
GtkWidget *widget;
widget = GTK_WIDGET (gtk_builder_get_object (self->builder,
"dialog_calibrate"));
gtk_window_fullscreen (GTK_WINDOW (widget));
gtk_window_maximize (GTK_WINDOW (widget));
}
static gboolean
cc_color_calibrate_window_state_cb (CcColorCalibrate *calibrate,
GdkEvent *event)
{
gboolean ret;
g_autoptr(GError) error = NULL;
GdkEventWindowState *event_state = (GdkEventWindowState *) event;
GtkWindow *window;
window = GTK_WINDOW (gtk_builder_get_object (calibrate->builder,
"dialog_calibrate"));
/* check event */
if (event->type != GDK_WINDOW_STATE)
return TRUE;
if (event_state->changed_mask != GDK_WINDOW_STATE_FULLSCREEN)
return TRUE;
/* resize to the correct screen */
ret = cc_color_calibrate_move_and_resize_window (window,
calibrate->device,
&error);
if (!ret)
g_warning ("Failed to resize window: %s", error->message);
return TRUE;
}
#endif
static void
cc_color_calibrate_button_done_cb (CcColorCalibrate *calibrate)
{
@@ -989,14 +899,6 @@ cc_color_calibrate_start (CcColorCalibrate *calibrate,
return TRUE;
}
static gboolean
cc_color_calibrate_delete_event_cb (CcColorCalibrate *calibrate)
{
/* do not destroy the window */
cc_color_calibrate_cancel (calibrate);
return TRUE;
}
static void
cc_color_calibrate_finalize (GObject *object)
{
@@ -1079,19 +981,6 @@ cc_color_calibrate_init (CcColorCalibrate *calibrate)
/* setup the specialist calibration window */
window = GTK_WINDOW (gtk_builder_get_object (calibrate->builder,
"dialog_calibrate"));
/*
g_signal_connect_object (window, "draw",
G_CALLBACK (cc_color_calibrate_alpha_window_draw), calibrate, G_CONNECT_SWAPPED);
g_signal_connect_object (window, "realize",
G_CALLBACK (cc_color_calibrate_window_realize_cb), calibrate, G_CONNECT_SWAPPED);
g_signal_connect_object (window, "window-state-event",
G_CALLBACK (cc_color_calibrate_window_state_cb), calibrate, G_CONNECT_SWAPPED);
g_signal_connect_object (window, "delete-event",
G_CALLBACK (cc_color_calibrate_delete_event_cb), calibrate, G_CONNECT_SWAPPED);
cc_color_calibrate_alpha_screen_changed_cb (calibrate);
g_signal_connect_object (window, "screen-changed",
G_CALLBACK (cc_color_calibrate_alpha_screen_changed_cb), calibrate, G_CONNECT_SWAPPED);
*/
calibrate->window = window;
}

View File

@@ -1642,7 +1642,8 @@ gcm_prefs_update_device_list_extra_entry (CcColorPanel *prefs)
gtk_widget_set_visible (prefs->box_devices, first_row != NULL);
/* if we have only one device expand it by default */
if (gtk_list_box_get_row_at_index (prefs->list_box, 1) == NULL)
if (first_row != NULL &&
gtk_list_box_get_row_at_index (prefs->list_box, 1) == NULL)
cc_color_device_set_expanded (CC_COLOR_DEVICE (first_row), TRUE);
}

View File

@@ -112,9 +112,17 @@ cc_language_row_new (const gchar *locale_id)
self->language_local = get_language_label (language_code, modifier, NULL);
gtk_label_set_label (self->language_label, self->language);
self->country = gnome_get_country_from_code (country_code, locale_id);
self->country_local = gnome_get_country_from_code (country_code, NULL);
gtk_label_set_label (self->country_label, self->country);
if (country_code == NULL)
{
self->country = NULL;
self->country_local = NULL;
}
else
{
self->country = gnome_get_country_from_code (country_code, locale_id);
self->country_local = gnome_get_country_from_code (country_code, NULL);
gtk_label_set_label (self->country_label, self->country);
}
return self;
}

View File

@@ -61,36 +61,6 @@ enum {
static GParamSpec *properties[N_PROPS];
static void
cc_list_row_activated_cb (CcListRow *self,
GtkListBoxRow *row)
{
g_assert (CC_IS_LIST_ROW (self));
if (!self->show_switch || row != GTK_LIST_BOX_ROW (self))
return;
cc_list_row_activate (self);
}
static void
cc_list_row_parent_changed_cb (CcListRow *self)
{
GtkWidget *parent;
g_assert (CC_IS_LIST_ROW (self));
parent = gtk_widget_get_parent (GTK_WIDGET (self));
if (!parent)
return;
g_return_if_fail (GTK_IS_LIST_BOX (parent));
g_signal_connect_object (parent, "row-activated",
G_CALLBACK (cc_list_row_activated_cb),
self, G_CONNECT_SWAPPED);
}
static void
cc_list_row_switch_active_cb (CcListRow *self)
{
@@ -228,9 +198,6 @@ cc_list_row_init (CcListRow *self)
g_resources_register (cc_common_get_resource ());
gtk_widget_init_template (GTK_WIDGET (self));
g_signal_connect_object (self, "notify::parent",
G_CALLBACK (cc_list_row_parent_changed_cb),
self, G_CONNECT_SWAPPED);
}
void
@@ -272,18 +239,6 @@ cc_list_row_get_active (CcListRow *self)
return self->switch_active;
}
void
cc_list_row_activate (CcListRow *self)
{
g_return_if_fail (CC_IS_LIST_ROW (self));
g_return_if_fail (self->show_switch);
self->switch_active = !self->switch_active;
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_ACTIVE]);
gtk_widget_activate (GTK_WIDGET (self->enable_switch));
}
void
cc_list_row_set_secondary_label (CcListRow *self,
const gchar *label)

View File

@@ -37,7 +37,6 @@ void cc_list_row_set_show_arrow (CcListRow *self,
void cc_list_row_set_show_switch (CcListRow *self,
gboolean show_switch);
gboolean cc_list_row_get_active (CcListRow *self);
void cc_list_row_activate (CcListRow *self);
void cc_list_row_set_secondary_label (CcListRow *self,
const gchar *label);
void cc_list_row_set_secondary_markup (CcListRow *self,

View File

@@ -27,6 +27,7 @@
<child>
<object class="GtkLabel" id="title">
<property name="halign">start</property>
<property name="wrap">True</property>
<!-- Actual string set in code -->
<property name="label"></property>
<attributes>
@@ -37,6 +38,7 @@
<child>
<object class="GtkLabel">
<property name="halign">start</property>
<property name="wrap">True</property>
<property name="label" translatable="yes">Some settings must be unlocked before they can be changed.</property>
</object>
</child>
@@ -55,6 +57,7 @@
<object class="GtkLockButton" id="lock_button">
<property name="receives-default">True</property>
<property name="label" translatable="yes">Unlock…</property>
<property name="valign">GTK_ALIGN_CENTER</property>
</object>
</child>
</object>

View File

@@ -108,6 +108,7 @@ time_editor_time_changed_cb (CcTimeEditor *self)
{
g_assert (CC_IS_TIME_EDITOR (self));
time_editor_clock_changed_cb (self);
g_signal_emit (self, signals[TIME_CHANGED], 0);
}

View File

@@ -568,6 +568,8 @@ cc_time_entry_set_time (CcTimeEntry *self,
self->minute = CLAMP (minute, 0, 59);
cc_time_entry_set_am_pm (self, is_am_pm);
g_signal_emit (self, signals[TIME_CHANGED], 0);
time_entry_fill_time (self);
}

View File

@@ -168,6 +168,9 @@
<child>
<object class="GtkSwitch" id="network_time_switch">
<property name="valign">center</property>
<accessibility>
<property name="label" translatable="yes">Enable</property>
</accessibility>
</object>
</child>
</object>
@@ -205,6 +208,9 @@
<child>
<object class="GtkSwitch" id="auto_timezone_switch">
<property name="valign">center</property>
<accessibility>
<property name="label" translatable="yes">Enabled</property>
</accessibility>
</object>
</child>
</object>

View File

@@ -48,11 +48,8 @@ struct _CcTimezoneMap
GdkTexture *orig_background_dim;
GdkTexture *background;
GdkTexture *color_map;
GdkTexture *pin;
gdouble selected_offset;
TzDB *tzdb;
TzLocation *location;
@@ -85,7 +82,6 @@ cc_timezone_map_dispose (GObject *object)
{
CcTimezoneMap *self = CC_TIMEZONE_MAP (object);
g_clear_object (&self->color_map);
g_clear_object (&self->orig_background);
g_clear_object (&self->orig_background_dim);
g_clear_object (&self->background);
@@ -286,12 +282,8 @@ cc_timezone_map_snapshot (GtkWidget *widget,
GtkSnapshot *snapshot)
{
CcTimezoneMap *map = CC_TIMEZONE_MAP (widget);
g_autoptr(GdkTexture) orig_highlight = NULL;
g_autofree gchar *file = NULL;
g_autoptr(GError) err = NULL;
gdouble pointx, pointy;
gint width, height;
char buf[16];
width = gtk_widget_get_width (widget);
height = gtk_widget_get_height (widget);
@@ -301,35 +293,6 @@ cc_timezone_map_snapshot (GtkWidget *widget,
map->background,
&GRAPHENE_RECT_INIT (0, 0, width, height));
/* paint highlight */
if (gtk_widget_is_sensitive (widget))
{
file = g_strdup_printf (DATETIME_RESOURCE_PATH "/timezone_%s.png",
g_ascii_formatd (buf, sizeof (buf),
"%g", map->selected_offset));
}
else
{
file = g_strdup_printf (DATETIME_RESOURCE_PATH "/timezone_%s_dim.png",
g_ascii_formatd (buf, sizeof (buf),
"%g", map->selected_offset));
}
orig_highlight = texture_from_resource (file, &err);
if (!orig_highlight)
{
g_warning ("Could not load highlight: %s",
(err) ? err->message : "Unknown Error");
}
else
{
gtk_snapshot_append_texture (snapshot,
orig_highlight,
&GRAPHENE_RECT_INIT (0, 0, width, height));
}
if (map->location)
{
pointx = convert_longitude_to_x (map->location->longitude, width);
@@ -426,8 +389,6 @@ set_location (CcTimezoneMap *map,
info = tz_info_from_location (map->location);
map->selected_offset = tz_location_get_base_utc_offset (map->location)
/ (60.0*60.0);
gtk_widget_queue_draw (GTK_WIDGET (map));
g_signal_emit (map, signals[LOCATION_CHANGED], 0, map->location);
@@ -499,14 +460,6 @@ cc_timezone_map_init (CcTimezoneMap *map)
g_clear_error (&err);
}
map->color_map = texture_from_resource (DATETIME_RESOURCE_PATH "/cc.png", &err);
if (!map->color_map)
{
g_warning ("Could not load background image: %s",
(err) ? err->message : "Unknown error");
g_clear_error (&err);
}
map->pin = texture_from_resource (DATETIME_RESOURCE_PATH "/pin.png", &err);
if (!map->pin)
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 208 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 B

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 995 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 844 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 868 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 876 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Some files were not shown because too many files have changed in this diff Show More