Compare commits

..

534 Commits

Author SHA1 Message Date
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
Georges Basile Stavracas Neto
a95f8ec974 Post-release version bump 2022-04-26 14:15:00 -03:00
Georges Basile Stavracas Neto
fdaecc3eac 42.1 2022-04-26 14:04:32 -03:00
Matej Urbančič
fd12b1b3f6 Update Slovenian translation 2022-04-25 19:13:27 +00:00
Danial Behzadi
f048803fb9 Update Persian translation 2022-04-25 13:57:20 +00:00
Marco Ciampa
804cf0b9b9 Update it.po 2022-04-25 13:16:30 +00:00
Zurab Kargareteli
e52fed7b4a Update Georgian translation 2022-04-25 09:17:51 +00:00
Aleksandr Melman
e7cc472ec8 Update Russian translation 2022-04-24 16:36:32 +00:00
Marco Trevisan (Treviño)
f55639cabb display: cleanup monitors list disposition 2022-04-24 12:21:14 +00:00
Marco Trevisan (Treviño)
c6da230052 display: Remove weak references on display disposition
Weak references are added when logical monitors are created, however we
don't remove them when destroying the display.

This means that if a monitor survives to the display finalization
(because may be referenced elsewhere) it will make g-c-c to crash
during its finalization, as that will trigger the weak reference
callback that will try to access to the already-finalized display.
2022-04-24 12:21:14 +00:00
Hu Jialun
8809dbc565 sharing/remote-desktop: handle gracefully when unable to get username
getlogin() can fail for several reasons as detailed in the man page, and
the current behaviour is a segmentation fault when it fails with NULL,
such as due to an unset loginuid.

* Check return value for error and act accordingly.
* Change to getpwuid(getuid())->pw_name, which is less likely to error.
2022-04-24 12:15:56 +00:00
Jeremy Bicha
414d4537cd sharing: Fix Remote Desktop on switch handling
Previously, we were only checking if the gnome-remote-desktop
user service was running but that service is always running
as of
https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/commit/7f4ef31fd38

We need to check the gsettings key too.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1775
2022-04-24 12:10:49 +00:00
Felipe Borges
e8a046765f wacom: Fix typo in UI file property name
Fixes #1777
2022-04-24 12:04:38 +00:00
Zurab Kargareteli
43b6e4a928 Update Georgian translation 2022-04-23 16:56:05 +00:00
Piotr Drąg
2318fdb08c Update Polish translation 2022-04-23 14:41:57 +02:00
Ngọc Quân Trần
f13d8641d7 Update Vietnamese translation 2022-04-23 01:13:43 +00:00
Luming Zh
f120537d78 Update Chinese (China) translation 2022-04-23 00:37:20 +00:00
Felipe Borges
633bf89537 sharing: Use GtkWindowControls to wrap the cert fingerprint dialog
Instead of using a plain "flat" button positioned at the window corner,
let's use GtkWindowControls to wrap the close button and get the
default window control styling and alignment.

Fixes #1737
2022-04-22 12:22:27 +00:00
Goran Vidović
b99a987c63 Update Croatian translation 2022-04-21 17:50:42 +00:00
Emin Tufan Çetin
58a1720109 Update Turkish translation 2022-04-21 07:50:25 +00:00
Jiri Grönroos
15a38273cb Update Finnish translation 2022-04-21 07:15:54 +00:00
Rafael Fontenelle
2b1ff315db Update Brazilian Portuguese translation 2022-04-21 01:24:47 +00:00
Hugo Carvalho
28bc160cff Update Portuguese translation 2022-04-20 22:04:46 +00:00
Jordi Mas
f724267394 Update Catalan translation 2022-04-20 22:01:18 +02:00
Goran Vidović
903854d776 Update Croatian translation 2022-04-20 17:29:03 +00:00
Felipe Borges
c2f89ef7ba wacom: Mark two more strings as translatable
See c5d0437c0f (note_1433556)
2022-04-20 18:09:21 +02:00
Piotr Drąg
9495fea0ef Update Polish translation 2022-04-20 18:03:19 +02:00
Sveinn í Felli
34e4314af7 Update Icelandic translation 2022-04-20 11:33:21 +00:00
Fran Dieguez
ba91ad00dc Update Galician translation 2022-04-20 06:55:31 +00:00
Bastien Nocera
1e1fbd6891 online-accounts: Fix feature switches not doing anything
Make sure to keep a reference to the GoaObject of the account around so
that the GBinding that synchronises each switch widget and the account
properties don't get finalized on startup.

 #0  0x00007ffff73c6a20 in g_binding_finalize () at /lib64/libgobject-2.0.so.0
 #1  0x00007ffff73d3d22 in g_object_unref () at /lib64/libgobject-2.0.so.0
 #2  0x00007ffff73c68e8 in weak_unbind () at /lib64/libgobject-2.0.so.0
 #3  0x00007ffff73cf117 in weak_refs_notify () at /lib64/libgobject-2.0.so.0
 #4  0x00007ffff72acd6c in g_data_set_internal () at /lib64/libglib-2.0.so.0
 #5  0x00007ffff73d0195 in g_object_real_dispose.lto_priv () at /lib64/libgobject-2.0.so.0
 #6  0x00007ffff73d3c44 in g_object_unref () at /lib64/libgobject-2.0.so.0
 #7  0x00007ffff72b6793 in g_hash_table_remove_all_nodes.part () at /lib64/libglib-2.0.so.0
 #8  0x00007ffff72ba723 in g_hash_table_unref () at /lib64/libglib-2.0.so.0
 #9  0x00007ffff753403d in g_dbus_object_proxy_finalize () at /lib64/libgio-2.0.so.0
 #10 0x00007ffff73d3d22 in g_object_unref () at /lib64/libgobject-2.0.so.0
 #11 0x0000000000402d08 in glib_autoptr_clear_GoaObject (_ptr=0x5d59f0) at /usr/include/goa-1.0/goa/goa-generated.h:3265
 #12 glib_autoptr_cleanup_GoaObject (_ptr=<synthetic pointer>) at /usr/include/goa-1.0/goa/goa-generated.h:3265
 #13 on_application_activate_show_account_cb (application=0x49f2f0, argv=<optimized out>) at ../../../../Projects/jhbuild/gnome-control-center/panels/online-accounts/gnome-control-center-goa-helper.c:360

Closes: #1721
2022-04-19 23:19:54 +02:00
Alexandre Franke
37b70a230f Update French translation 2022-04-19 20:57:09 +00:00
Alan Mortensen
9277e7573a Update Danish translation 2022-04-19 17:59:02 +00:00
Anders Jonsson
5ec3417a2d Update Swedish translation 2022-04-19 17:48:25 +00:00
Yuri Chornoivan
2896754417 Update Ukrainian translation 2022-04-19 17:15:43 +00:00
oscfdezdz
c5d0437c0f wacom: mark some strings as translatable
Some UI strings were not marked as translatable when the panel was ported to GTK4.
2022-04-19 16:46:59 +00:00
koko ng
322bddd971 user-accounts: Close password change dialog
Fixes #1746
2022-04-19 15:08:49 +00:00
Hugo Carvalho
51faf7090e Update Portuguese translation 2022-04-16 16:46:52 +00:00
Georges Basile Stavracas Neto
e5a49dcf7b display: Return to main page after applying changes
After applying a change, it is useful to see the new state of the
monitors, so move back to the 'displays' page after applying.
2022-04-16 11:47:11 +00:00
Georges Basile Stavracas Neto
214dc277b5 display: Don't render background on selected monitors
In the previous design of this panel, it made sense to show the
currently selected monitor because all editing widgets were in
the same page. With the new design, however, the monitor options
were moved to a separate page, and that page already shows which
monitor is being edited.

Remove the colored background of selected monitors.
2022-04-16 11:47:11 +00:00
Georges Basile Stavracas Neto
ced1386fcd display: Update header title when setting output
Instead of updating the titlebar of the monitor preferences page in
the row clicked callback, update it in set_current_output(). This
ensures that the title of the page is always in sync with the monitor
it's displaying.
2022-04-16 11:47:11 +00:00
Changwoo Ryu
3ffaed73a0 Update Korean translation 2022-04-15 19:28:30 +00:00
Simon McVittie
d27d3df268 appdata: Correct name of launchable
Fixes: acd59aec "Rename app-id to org.gnome.Settings"
Resolves: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1766
Signed-off-by: Simon McVittie <smcv@debian.org>
2022-04-15 10:50:05 +00:00
Bruce Cowan
4491e3d790 Update British English translation 2022-04-14 20:35:03 +00:00
Gun Chleoc
88277534a5 Update Scottish Gaelic translation 2022-04-12 12:11:16 +00:00
Jordi Mas
27b7832931 Update Catalan translation 2022-04-10 21:52:32 +02:00
Piotr Drąg
93cfdd464c Update Polish translation 2022-04-10 12:41:50 +02:00
Aleksandr Melman
37ceaa25f7 Update Russian translation 2022-04-09 15:32:14 +00:00
Alexander Shopov
862ceacc73 Update Bulgarian translation 2022-04-09 08:01:45 +00:00
Sebastian Keller
b213fdc28a lock: Fix wrong time shown in screen lock delay dropdown
The time shown for the 5 minutes setting was 3 minutes.
2022-04-07 11:36:40 +00:00
Brandon Nielsen
7c5beecc97 printers: Use a GtkDropDown in PpOptionsDialog
PpPpdOptionWidget and PpIppOptionWidget both use combo boxes for
certain types of selections. With GTK4, combo boxes no longer
support scrolling[0], which in turn causes problems setting some
things in the PpOptionsDialog[1].

This replaces instances of GtkComboBox with GtkDropDown which do
support scrolling. This change was applied to both PpIppOptionWidget
and PpPpdOptionWidget as both are used in PpOptions dialog.

Since the configuration values passed to CUPS can no longer be stored
in a GtkTreeModel alongside the displayed values, some logic changes
to update_widget_real in PpPpdOptionWidget to maintain the reference
to the ppd_option_t so the selected index can be mapped to the
configuration value.

[0] - https://gitlab.gnome.org/GNOME/gtk/-/issues/3674
[1] - https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1704
2022-04-05 11:52:00 -03:00
Ngọc Quân Trần
7c6a41f807 Update Vietnamese translation 2022-04-05 09:18:20 +00:00
Jordi Mas
31338d4885 Update Catalan translation 2022-04-03 21:27:48 +02:00
Yuri Chornoivan
8ecdee3412 Update Ukrainian translation 2022-04-03 09:15:30 +00:00
Daniel Rusek
2b6b58f29d Update Czech translation 2022-03-31 14:29:50 +00:00
Rūdolfs Mazurs
746ea1138a Update Latvian translation 2022-03-29 20:34:56 +00:00
Jakub Steiner
d57446699c Universal Access: don't depend on gnome-icon-theme-extra
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1713
2022-03-29 15:10:56 +00:00
Georges Basile Stavracas Neto
f42868e616 CI: Fix custom deps script 2022-03-29 11:07:53 -03:00
Georges Basile Stavracas Neto
6898ff58d2 CI: Build libgweather with soup2
It'll bite us in the future, but let's go with this for now.
2022-03-29 10:47:42 -03:00
Georges Basile Stavracas Neto
dd2adb77ec CI: Cleanup gcr-devel from jobs
gcr-devel is installed as part of the base image, we don't need to
install it on every job run.
2022-03-29 10:38:53 -03:00
Gustavo Noronha Silva
de27ec8ba2 flatpak: update and fix openldap build
openldap was failing to build on aarch64 due to an outdated
config.guess, so update it to a more recent version.
2022-03-29 12:47:49 +00:00
Gustavo Noronha Silva
3d34b6ddba flatpak: disable new ModemManager dependency 2022-03-29 12:47:49 +00:00
Gustavo Noronha Silva
9610c2e17b flatpak: fix branches for a couple deps
gweather and mobile-broadband-provider-info have moved to using main as their
principal development branch.
2022-03-29 12:47:49 +00:00
Gustavo Noronha Silva
a294ceba18 flatpak: use https:// for github
github discontinued the unauthenticated use of the git protocol for
security reasons, see:

https://github.blog/2021-09-01-improving-git-protocol-security-github/
2022-03-29 12:47:49 +00:00
Jan Tojnar
7fe322b9ce online-accounts: Fix goa-helper on X11
The handle_str contains the “x11:” prefix so strtol would return 0.
We need to pass it the numeric substring.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1651
2022-03-29 12:33:14 +00:00
Georges Basile Stavracas Neto
ebc54deb62 Ci: Build libgweather from main 2022-03-29 09:27:33 -03:00
Jordi Mas
3d54229d3d Update Catalan translation 2022-03-28 23:16:30 +02:00
Goran Vidović
aba4c668ee Update Croatian translation 2022-03-28 11:07:38 +00:00
Nathan Follens
c6d392727f Update Dutch translation 2022-03-26 22:58:26 +00:00
Nathan Follens
a428799890 Update Dutch translation 2022-03-25 14:27:06 +00:00
Hugo Carvalho
00a7dbec18 Update Portuguese translation 2022-03-24 23:05:52 +00:00
Norbert Pfeiler
88e19f50c9 info-overview: Replace llvmpipe with “Software Rendering” 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
a57d31f0cf info-overview: Add some commonly used trademarks
Those are not always present in the device string.
Guidance was taken from the usage on vendor websites.

NVIDIA actually has the rights to GTX™ but doesn’t seem to use it,
in contrast to RTX™.
2022-03-23 09:36:24 +00:00
Norbert Pfeiler
16fc5a95f8 info-overview: Remove some rare @ x.yz GHz specification 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
4b17d9be8e info-overview: Remove redundant/elaborate info
Remove redundant/elaborate in strings like CPU, Core and Processor.
2022-03-23 09:36:24 +00:00
Norbert Pfeiler
50ab1b0742 info-overview: Remove some junk info, like PCIe and SSE 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
02bbab7b8a info-overview: Replace the trademark symbols in a more generic way 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
54b215e1e9 info-overview: Use a more generic regex to match the Mesa infos 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
827369fe94 info-overview: Always omit Gallium, not just for AMD 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
4b6786bd44 info-overview: If names are all caps, leave them be
This made everything AMD lower case after the second word
and is likely unintentional for something like EPYC™.

e.g. was
AMD Ryzen threadripper 1950x 16-core processor
AMD Radeon rx 580 series
2022-03-23 09:36:24 +00:00
Norbert Pfeiler
68d67adf12 info-overview: There is no “AMD®”
AMD doesn’t have a registered trademark for the string only.
2022-03-23 09:36:24 +00:00
Felipe Borges
52a8c998fb sharing: Remove leftover remote_desktop_password_insert_text_cb
This method is unused and was left behind after the rework in
commit 0ae59467fb

Fixes #1703
2022-03-22 13:54:46 +00:00
Марко Костић
7bbf551cc1 Update Serbian translation 2022-03-19 07:38:01 +00:00
Alberts Muktupāvels
a581395221 display: fix monitor labels
has-toplevel-focus property has been removed from GTK 4:
0ce9f26dc5

https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1697
2022-03-18 22:08:49 +00:00
Pauli Virtanen
8c84b9f0d3 subprojects: Update libgvc
This update is necessary to fix a bug that can cause sound device
profiles to be missing, possibly making some sound device ports
unusable.

See https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/19
Fixes #1668
2022-03-18 21:49:36 +00:00
Jonathan Kang
ce93dbb3a0 network/connection-editor: always load all available VPN plugins
Previously, when a list of VPN plugins was loaded once, it will not load
again the next time you try to add a VPN connnection. This causes an
issue that if you keep gnome-control-center open and install a new VPN
plugin, the new VPN plugin won't show up in the VPN plugin list.

Fix that by always load all avilable VPN plugins when showing the
"Add VPN" dialog.
2022-03-18 21:37:48 +00:00
Jonathan Kang
6f1567f236 network/connection-editor: destroy the editor when closing
If an user opens an connection editor and then closes it, repeat this
multiple times causes lots of unused hidden editor windows.

Fix that by destroying the connection editor instead of hiding them
when closing.
2022-03-18 21:37:48 +00:00
Georges Basile Stavracas Neto
6199d4058e 42.0 2022-03-18 18:28:27 -03:00
Sophie Herold
6624179102 appdata: Update screenshots 2022-03-18 10:33:22 +00:00
A S Alam
49ed0d2f69 Update Punjabi translation 2022-03-17 15:54:40 +00:00
Goran Vidović
e807eadde3 Update Croatian translation 2022-03-17 11:26:02 +00:00
Goran Vidović
e909176b5b Update Croatian translation 2022-03-17 11:10:48 +00:00
Milo Casagrande
d232538832 Update Italian translation 2022-03-17 08:37:58 +00:00
sicklylife
c306e685e3 Update Japanese translation 2022-03-16 12:02:30 +00:00
Matej Urbančič
bd179f3171 Update Slovenian translation 2022-03-15 21:25:30 +00:00
Goran Vidović
b6f5333e83 Update Croatian translation 2022-03-15 14:01:36 +00:00
sicklylife
d9c3f51de5 Update Japanese translation 2022-03-15 13:40:15 +00:00
Quentin PAGÈS
328f6b3c11 Update Occitan translation 2022-03-15 09:29:16 +00:00
Balázs Úr
3ed10617ce Update Hungarian translation 2022-03-15 00:45:21 +00:00
Guillaume Bernard
8efecd3ae9 Update French translation 2022-03-14 21:40:18 +00:00
Christian Kirbach
a74eaca42c Update German translation 2022-03-14 21:02:54 +00:00
Christian Kirbach
83091db869 Update German translation 2022-03-14 20:59:46 +00:00
Quentin PAGÈS
8024531130 Update Occitan translation 2022-03-14 19:03:43 +00:00
Daniel Mustieles
87a7518515 Updated Spanish translation 2022-03-14 09:03:28 +01:00
Марко Костић
6b7f4aca98 Update Serbian translation 2022-03-13 05:08:16 +00:00
Piotr Drąg
8f5270e3a9 Update Polish translation 2022-03-12 15:09:30 +01:00
Baurzhan Muftakhidinov
24172abc43 Update Kazakh translation 2022-03-12 14:05:52 +00:00
sicklylife
5a1e5e1a11 Update Japanese translation 2022-03-12 10:41:35 +00:00
Марко Костић
c03d02c002 Update Serbian translation 2022-03-12 06:46:11 +00:00
Alan Mortensen
86e47b6cd8 Update Danish translation 2022-03-11 18:20:45 +00:00
Goran Vidović
db4d258aa5 Update Croatian translation 2022-03-11 16:15:48 +00:00
Anders Jonsson
033ae5a622 Update Swedish translation 2022-03-11 12:34:20 +00:00
Kjartan Maraas
cd3371fc41 Update Norwegian Bokmål translation 2022-03-10 15:24:41 +00:00
Kjartan Maraas
e6ce64df29 Update Norwegian Bokmål translation 2022-03-10 15:19:27 +00:00
sicklylife
a4810f3e9e Update Japanese translation 2022-03-10 13:03:14 +00:00
sicklylife
cee871b5f3 Update Japanese translation 2022-03-10 12:54:26 +00:00
純 小山田
bdb6985861 Update Japanese translation 2022-03-10 12:53:24 +00:00
Aleksandr Melman
35e14d4dd0 Update Russian translation 2022-03-09 21:05:52 +00:00
Luna Jernberg
a90776f6af Update Swedish translation 2022-03-09 18:22:23 +00:00
Jiri Grönroos
f688270d87 Update Finnish translation 2022-03-09 18:21:04 +00:00
Dušan Kazik
1e08e8604f Update Slovak translation 2022-03-09 09:44:36 +00:00
Fabio Tomat
2cf2a8b6af Update Friulian translation 2022-03-07 22:01:16 +00:00
Fabio Tomat
55359e252c Update Friulian translation 2022-03-07 21:58:09 +00:00
Georges Basile Stavracas Neto
90b1f3657f tests: Port tests to GTK4
Port the tests, especially the interactive ones, to GTK4, and
libadwaita.
2022-03-07 19:51:26 +00:00
Benjamin Berg
8d75b24ccc ci: Only use runners with working close_range syscall
If the wrong error code is returned due to broken seccomp filters, then
g_spawn will fail and the tests break.

See https://gitlab.gnome.org/Infrastructure/GitLab/-/issues/545
2022-03-07 19:51:26 +00:00
Yosef Or Boczko
7c9592894f Update Hebrew translation 2022-03-07 18:52:22 +00:00
Georges Basile Stavracas Neto
db1f78706d Post-release version bump 2022-03-07 14:30:07 -03:00
Georges Basile Stavracas Neto
aa126bce45 42.rc 2022-03-07 14:20:22 -03:00
Felipe Borges
b094a0b392 info-overview: Allow changing "Device Name" by pressing "Enter"
The hostname/device name dialog has only a GtkEntry. So a user
navigating with only a keyboard should be able to apply their
changes by pressing "Enter".
2022-03-07 17:02:20 +00:00
Fran Dieguez
6914a69791 Update Galician translation 2022-03-07 16:57:40 +00:00
Aurimas Černius
38a24a26f5 Updated Lithuanian translation 2022-03-07 18:34:28 +02:00
Felipe Borges
854c888214 user-accounts: Add cutout to avatar edit button
Shamelessly copied from
https://gitlab.gnome.org/GNOME/fractal/-/blob/fractal-next/data/resources/ui/content-room-details.ui#L29
and
https://gitlab.gnome.org/GNOME/fractal/-/blob/fractal-next/data/resources/style.css#L506

Fixes #1662
2022-03-07 15:59:46 +00:00
Felipe Borges
fb4f430f79 user-accounts: Drop unused CSS style 2022-03-07 15:59:46 +00:00
Alberts Muktupāvels
ea47caa533 keyboard: restore _GNOME_WM_KEYBINDINGS support
Before d7e794e7ab Keyboard Shortcuts dialog showed keybindings
for current WM. This commit restores this functionality.
2022-03-07 17:46:37 +02:00
Danial Behzadi
c4c400fcf9 Update Persian translation 2022-03-07 10:35:40 +00:00
Kukuh Syafaat
a255b409e2 Update Indonesian translation 2022-03-06 08:32:37 +00:00
Luming Zh
802fb282e3 Update Chinese (China) translation 2022-03-05 23:41:43 +00:00
Alexander Shopov
c0ae7f0442 Update Bulgarian translation 2022-03-05 21:09:50 +00:00
Jordi Mas
1cb06e5182 Update Catalan translation 2022-03-05 20:20:43 +01:00
Changwoo Ryu
6245601620 Update Korean translation 2022-03-05 18:03:03 +00:00
Marek Černocký
4d8a19b073 Updated Czech translation 2022-03-05 11:13:54 +01:00
Enrico Nicoletto
a080e5c45f Update Brazilian Portuguese translation 2022-03-04 22:29:07 +00:00
Hugo Carvalho
cd1a8c3698 Update Portuguese translation 2022-03-04 22:02:19 +00:00
Emin Tufan Çetin
46c9545b2e Update Turkish translation 2022-03-04 21:39:27 +00:00
Asier Sarasua Garmendia
a994bb217e Update Basque translation 2022-03-04 21:39:13 +00:00
Jordi Mas
435881a96d Update Catalan translation 2022-03-04 22:35:42 +01:00
Yuri Chornoivan
6a5645d07a Update Ukrainian translation 2022-03-04 18:11:08 +00:00
Carlos Garnacho
0d82613258 wacom: Bring back empty state view
This went mistakenly missing in the recent UI updates. Since this
panel is still accessible through search despite tablet availability,
we should have a proper empty state view when moving to the panel
with no tablets available.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1684
2022-03-04 15:19:21 +00:00
Tim Sabsch
fc1f83597d Update German translation 2022-03-03 21:27:38 +00:00
Jonas Ådahl
9d76bb3a80 sharing/remote-desktop: Copy entries via editable API
GtkPasswordEntry is not a GtkEntry so can't use that API. Both are
GtkEditable however, so use that instead.
2022-03-03 21:11:23 +00:00
Jonas Ådahl
93754f87b3 sharing/remote-desktop: Make device name and address labels selectable 2022-03-03 21:11:23 +00:00
Jonas Ådahl
58a3229cfc sharing/systemd-service: Treat 'static' state as enabled
Quoting the documentation:

> static indicates that the unit is statically enabled, i.e. always
> enabled and doesn't need to be enabled explicitly
2022-03-03 21:11:23 +00:00
Jonas Ådahl
dde343d8de sharing/remote-desktop: Only try to enable the RDP backend
Turning off the service doesn't mean we need to disable the RDP backend,
the setting can stay enabled in case one wants to manage it directly via
systemd.
2022-03-03 21:11:23 +00:00
Jonas Ådahl
3a9ce7b32b sharing/remote-desktop: Make the finger print view not scroll
Do this by setting the adw status page to expand vertically.
2022-03-03 21:11:23 +00:00
Felipe Borges
dfb2fa31af users: Make FileChooser inside AvatarChooser transient to main window
Depends on
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1253

Fixes #1677
2022-03-03 17:22:38 +01:00
Felipe Borges
dc032c338d user-accounts: Explicitly initialize CcAvatarChooser
Setting the Gtk.MenuButton.popover property to a CcAvatarChooser
object doesn't initialize the CcAvatarChooser object.

Fixes #1689
2022-03-03 16:13:46 +00:00
Changwoo Ryu
73487903ce Update Korean translation 2022-03-03 12:45:16 +00:00
Quentin PAGÈS
9339e130f6 Update Occitan translation 2022-03-02 19:46:13 +00:00
Aleksandr Melman
baf99d5b5b Update Russian translation 2022-03-02 19:30:20 +00:00
Felipe Borges
4b21c5b056 user-accounts: Load avatar image files in "Other users" list
We were checking for the existance of an image file as avatar when
setting up the main avatar widget in the page, but the same wasn't
done for the avatars displayed in the "Other users" list. These
were AdwAvatars simply initialized to use the user initials.

Now we load the user image (if it exists) and it will fallback to
initials when an image isn't set.

Fixes #1658
2022-03-02 16:04:26 +00:00
Alexander Shopov
0adebc9bec Update Bulgarian translation 2022-03-02 15:35:25 +00:00
Daniel Mustieles
96ca1cdcb6 Updated Spanish translation 2022-03-02 15:51:43 +01:00
Emin Tufan Çetin
2dc3755192 Update Turkish translation 2022-03-02 12:30:20 +00:00
Marek Kasik
9f0733182a printers: Destroy ppd selection dialog explicitly
Destroy PpPPDSelectionDialog in dispose method of PpNewPrinterDialog
as its transient-for property was unset by previous commit
and the dialog is not destroyed automatically now.
2022-03-02 11:03:59 +00:00
Marek Kasik
e81651873c printers: Unset transient-for
Unset transient-for for PpPPDSelectionDialog in its responce callback
since due some reason its parent PpNewPrinterDialog is destroyed first
and once the PpPPDSelectionDialog is being destroyed it tries to
unset the transient-for but unsuccesfully resulting in warnings like:

"instance with invalid (NULL) class pointer"
"g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed"
2022-03-02 11:03:59 +00:00
Jakub Steiner
105b8a518d multitasking: clean up illustration
- fills removed to make dark mode possible exposed the rings
  going through the cursors and arrows, which isn't a nice
  aesthetic. convert to shapes and cut them with booleans
  to get the previous look without using solid color fills
2022-03-02 10:00:39 +01:00
Kukuh Syafaat
441567ed63 Update Indonesian translation 2022-03-02 02:41:35 +00:00
Goran Vidović
89944b819b Update Croatian translation 2022-03-02 00:22:42 +00:00
Goran Vidović
7430b7f555 Update Croatian translation 2022-03-02 00:21:27 +00:00
Jakub Steiner
c7ace33d2d screen lock: install icons
- the build files never included the icon

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1621
2022-03-01 14:36:33 +00:00
Jakub Steiner
8b4a5ba2e8 usage: minor icon tweak
- everything but the filesystem device icons has lost the chin
2022-03-01 12:14:52 +01:00
Marek Černocký
35cd231d0d Updated Czech translation 2022-03-01 11:26:30 +01:00
Jordi Mas
4a7e1ea381 Update Catalan translation 2022-02-28 21:02:05 +01:00
Alan Mortensen
8da3668327 Updated Danish translation 2022-02-28 18:46:31 +01:00
Felipe Borges
0019b0869a user-accounts: Reinstate fingerprint dialog
The port of the Fingerprint dialog to gtk4 wasn't completed.
Now the dialog is expected to function again.
2022-02-28 15:47:42 +00:00
Rafael Fontenelle
747f7ef580 Update Brazilian Portuguese translation 2022-02-28 14:53:01 +00:00
Felipe Borges
ccf8961740 multitasking: Display Right-to-Left ilustrations for RTL locales
Fixes #1559
2022-02-28 10:44:07 +00:00
Jakub Steiner
7efd63e2ee multitasking: no more rounded top bar
- update the look of the top bar not to have the rounding of <GNOME 41

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1656
2022-02-28 10:44:07 +00:00
Jakub Steiner
6d9d6bd8b7 multitasking: provide rtl asset
- provide a RTL variant of the hot corner graphic
- revert one of the arrow to be outine only (unrelated to rtl)
- provide RTL variant of the active screen edges (close button
  on the opposite side)

See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1559
2022-02-28 10:44:07 +00:00
Yosef Or Boczko
5a7aa11b1e display: Force LTR to the spinbuttons's box 2022-02-28 09:47:53 +00:00
Fran Dieguez
e81b382039 Update Galician translation 2022-02-27 22:45:20 +00:00
Yosef Or Boczko
65d3be2256 Update Hebrew translation 2022-02-27 22:09:37 +00:00
Quentin PAGÈS
9901d6ec08 Update Occitan translation 2022-02-27 12:49:13 +00:00
Asier Sarasua Garmendia
827c8bd341 Update Basque translation 2022-02-27 08:03:59 +00:00
Hugo Carvalho
5e02bc2d1f Update Portuguese translation 2022-02-26 22:00:03 +00:00
Yuri Chornoivan
d9824a39fd Update Ukrainian translation 2022-02-26 19:11:27 +00:00
Jonas Ådahl
5dc4081e2c sharing/remote-desktop: Initialize username/password if not set
If no password or username was set (not even an empty one), initialize
them to something, specifically the username of the user of the session,
and a auto generated password.
2022-02-26 18:19:14 +00:00
Jonas Ådahl
06efa4906e sharing/remote-desktop: Hook up to explicit enable setting
Enabling the service isn't enough, one also needs to enable the relevant
backend.
2022-02-26 18:19:14 +00:00
Jonas Ådahl
e8d574883a sharing/remote-desktop: Add copy buttons 2022-02-26 18:19:14 +00:00
Jonas Ådahl
1436dc8120 sharing/remote-desktop: Use systemd directly to manage service
This means we no longer rely on gsd-sharing to disable/enable the remote
desktop service depending on the current connected network.
2022-02-26 18:19:14 +00:00
Jonas Ådahl
5829e397f2 sharing/systemd-service: Add is_active() helper
Checks whether a service is both enabled and running.
2022-02-26 18:19:14 +00:00
Jonas Ådahl
81d3d16a67 sharing/remote-login: Move systemd unit management into helper
This will make it possible to reuse elsewhere, including for user
services.
2022-02-26 18:19:14 +00:00
Jonas Ådahl
3631338676 sharing: Generate RDP TLS certificates when missing
This also hooks up the certificate verification dialog to the configured
TLS certificate.
2022-02-26 18:19:14 +00:00
Jonas Ådahl
2f298c1cb2 sharing/tls: Change expiration timeout to 2 years
It was 5 years; shorten it to 2 years.
2022-02-26 18:19:14 +00:00
Jonas Ådahl
5eb46ec1b7 sharing: Add TLS certificate generation implementation
This copies TLS certificate generation implementation from
https://gitlab.gnome.org/chergert/bonsai. No changes were made other
than ones required for making it build as part of gnome-control-center's
sharing panel. It's currently not suitable to depend on libbonsai, as it
will likely see big changes before seeing a release.
2022-02-26 18:19:14 +00:00
Felipe Borges
0ae59467fb sharing: Port Screen Sharing dialog to RDP
Also following the guidelines at
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/raw/master/remote-desktop/remote-desktop.png

Fixes #1413
2022-02-26 18:19:14 +00:00
Piotr Drąg
abbf8f0734 Update POTFILES.in 2022-02-26 13:19:11 +01:00
Dor Askayo
9401881a38 common: Add a missing dependency on cc-common-resources.h
cc-common-resources.h is used by both libwidgets and liblanguage, and
so must be generated before they build. However, Meson wasn't aware
of this dependency which resulted in a race condition during build.

Conveniently, "generates_sources_dep" already contains other generated
sources used by these two libraries, so adding cc-common-resources.h
to this list is enough to declare the dependency.
2022-02-25 16:10:58 +00:00
Brandon Nielsen
18b7f6f026 Simplify callback logic in ppd_selection_cb.
This ensures user_callback does not get called twice when cancelling out
of the ppd selection dialog. Fixes #1599, introduced with 179bda1b / MR: 1011.
2022-02-25 11:44:14 +00:00
Hugo Carvalho
a0845c4eaf Update Portuguese translation 2022-02-24 18:53:46 +00:00
Ana Cabral
43bb1d9200 network: Fix OWE settings
Enhanced Open (OWE) is not being saved properly from connection-editor.
When we create a Wi-Fi connection using Enhanced Open (OWE) Security
from nm-connection-editor and save it, it was not being saved and the
security was being set as "None", with Wireless Security Setting
being discarded. This is fixed by this commit. The fix is also being
done in libnma (implementing OWE in libnma,
https://gitlab.gnome.org/GNOME/libnma/-/issues/9), but this commit
fixes meanwhile it gets ready.

It was solved by adding treatment for the case in which owe was set.
OWE is not treated anymore in the same case as None.

https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1521
2022-02-24 12:56:43 +01:00
Daniel Mustieles
55a9ee1511 Updated Spanish translation 2022-02-24 12:52:42 +01:00
Bastien Nocera
cbdb489fc4 build: Check run_command() return value
As recommended by newer versions of meson:
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300
2022-02-24 10:14:05 +01:00
Luming Zh
d75b46b71b Update Chinese (China) translation 2022-02-23 18:38:06 +00:00
Felipe Borges
28edca0f16 sound: Connect to "clicked" signal for the sound alert buttons
The sound alert buttons are grouped GtkToggleButtons, and for some
reason they won't get activated in the right order when tapping to
the "toggled" event. Connecting to "clicked" makes the signal order
emission correctly.

Fixes #1655
2022-02-23 11:17:50 +01:00
Yosef Or Boczko
ee4a5e4635 Update Hebrew translation 2022-02-22 20:17:14 +00:00
Marek Kasik
f7bd51e812 printers: Remove authentication-dialog.ui
The dialog was removed in 2016 but we forgot to remove the UI file.

Fixes #1650
2022-02-22 12:44:12 +01:00
Jordi Mas
14e690f9c1 Update Catalan translation 2022-02-22 07:40:46 +01:00
Yaron Shahrabani
2b58b47fda Update Hebrew translation 2022-02-21 14:28:48 +00:00
Jordi Mas
e70d9e205e Update Catalan translation 2022-02-20 20:25:59 +01:00
Quentin PAGÈS
052e274121 Update Occitan translation 2022-02-20 18:33:24 +00:00
Aurimas Černius
7b9a723c68 Updated Lithuanian translation 2022-02-20 15:21:58 +02:00
Danial Behzadi
cd7f67a183 Update Persian translation 2022-02-20 11:36:05 +00:00
Alan Mortensen
86fda01fd9 Updated Danish translation 2022-02-19 18:37:09 +01:00
Andre Klapper
1042f538d7 Fix invalid markup in Bulgarian UI translation 2022-02-18 23:11:15 +01:00
Aleksandr Melman
33bac7fcf2 Update Russian translation 2022-02-18 19:31:35 +00:00
Kukuh Syafaat
0727474539 Update Indonesian translation 2022-02-18 02:10:42 +00:00
Bastien Nocera
0947ae2557 power: Fix scenario tester running upowerd under jhbuild
A logic error meant that the systemd upowerd would always be used.
2022-02-17 14:55:13 +00:00
Jordi Mas
e19d64a5fb Update Catalan translation 2022-02-16 19:56:36 +01:00
Emin Tufan Çetin
b23bea4f99 Update Turkish translation 2022-02-16 18:26:57 +00:00
Hugo Carvalho
26578110f3 Update Portuguese translation 2022-02-15 22:17:46 +00:00
Hugo Carvalho
9dd96d78c8 Update Portuguese translation 2022-02-15 21:50:56 +00:00
Yosef Or Boczko
494f0d6bcb Update Hebrew translation 2022-02-15 20:57:04 +00:00
406 changed files with 141471 additions and 101357 deletions

View File

@@ -40,6 +40,11 @@ stages:
meson test -C _build --verbose --no-stdsplit
.fedora.container.common:
# As of 2022-03-07 runners not tagged with "crun" have broken seccomp rules
# affecting the close_range syscall and breaking g_spawn
# Note that "asan" tests are disabled for the same reason, see below.
# https://gitlab.gnome.org/Infrastructure/GitLab/-/issues/545
tags: [ crun ]
variables:
# When branching a stable release, change 'main'
# to the release number/branch to ensure that
@@ -47,7 +52,7 @@ stages:
# stable branch.
# Could probably also switch away from rawhide,
# to stable fedora branch as well.
FDO_DISTRIBUTION_TAG: '2022-01-19.0-main'
FDO_DISTRIBUTION_TAG: '2022-03-29.0-main'
FDO_DISTRIBUTION_VERSION: rawhide
#############################################
@@ -156,6 +161,12 @@ build.container.fedora@x86_64:
ninja -C _build && \
ninja -C _build install && \
cd .. && \
git clone https://gitlab.gnome.org/GNOME/libgweather.git && \
cd libgweather && \
meson . _build --prefix=/usr -Denable_vala=false -Dgtk_doc=false -Dintrospection=false && \
ninja -C _build && \
ninja -C _build install && \
cd .. && \
git clone https://gitlab.gnome.org/GNOME/gnome-settings-daemon.git && \
cd gnome-settings-daemon && \
meson . _build --prefix=/usr && \
@@ -179,7 +190,6 @@ build:
stage: build
script:
- dnf -y install gcr-devel
- *environment_information
- *build_procedure
@@ -212,7 +222,6 @@ test:
- build
script:
- dnf -y install gcr-devel
- *environment_information
- *run_tests
@@ -238,10 +247,9 @@ coverage:
BUILD_OPTS: "-Db_coverage=true"
coverage: '/^Lines:.\d+.\d+.(\d+\.\d+\%)/'
only:
- master@GNOME/gnome-control-center
- main@GNOME/gnome-control-center
script:
- dnf -y install gcr-devel
- *environment_information
- *build_procedure
- *run_tests
@@ -279,7 +287,7 @@ pages:
paths:
- public
only:
- master@GNOME/gnome-control-center
- main@GNOME/gnome-control-center
except:
variables:
@@ -293,7 +301,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:
@@ -345,7 +353,7 @@ flatpak:
except:
- tags
- gnome-3-.*
- master@GNOME/gnome-control-center
- main@GNOME/gnome-control-center
# Runs the sanitizers [address, thread, undefined, and memory].
@@ -357,7 +365,6 @@ flatpak:
stage: manual
when: manual
script:
- dnf -y install gcr-devel
- *environment_information
- *build_procedure
- *run_tests
@@ -367,18 +374,19 @@ flatpak:
- $CI_PIPELINE_SOURCE == "schedule"
- $CI_COMMIT_TITLE =~ /^Update.*translation$/
asan:
extends:
- '.fdo.distribution-image@fedora'
- '.fedora.container.common'
<<: *sanitizer
# ASAN requires debugging capabilities
tags: [ asan ]
stage: manual
when: manual
variables:
BUILD_OPTS: "-Db_sanitize=address"
LSAN_OPTIONS: "suppressions=${CI_PROJECT_DIR}/build-aux/ci/lsan.supp"
# Disabled because we currently need "crun" tagged runners, see above
#asan:
# extends:
# - '.fdo.distribution-image@fedora'
# - '.fedora.container.common'
# <<: *sanitizer
# # ASAN requires debugging capabilities
# tags: [ asan ]
# stage: manual
# when: manual
# variables:
# BUILD_OPTS: "-Db_sanitize=address"
# LSAN_OPTIONS: "suppressions=${CI_PROJECT_DIR}/build-aux/ci/lsan.supp"
tsan:
extends:

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-guideline
-->

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-guideline
-->

92
NEWS
View File

@@ -1,3 +1,95 @@
================
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
================
- Updated translations
Display
- Various small behavior improvements
- Fix monitor labels
Network
- Improve handling of VPN connections
Online Accounts
- Fix behavior of helper application on X11
- Fix changes to online accounts services not applying correctly
User Accounts
- Various small polishments
Wacom
- Properly translate various strings
================
Version 42.0
================
- Updated AppData screenshots
- Re-enable tests
- Updated translations
================
Version 42.rc
================
- Updated translations
Keyboard
- Restore _GNOME_WM_KEYBINDINGS support
User Accounts
- Bring back Fingerprint dialog
- Fix avatar loading
Wacom
- Bring back empty state
================
Version 42.beta
================

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

@@ -134,7 +134,7 @@
"sources" : [
{
"type" : "git",
"url" : "git://github.com/libusb/libusb.git"
"url" : "https://github.com/libusb/libusb.git"
}
]
},
@@ -149,7 +149,7 @@
"sources" : [
{
"type" : "git",
"url" : "git://github.com/hughsie/libgusb.git",
"url" : "https://github.com/hughsie/libgusb.git",
"branch" : "main"
}
]
@@ -182,7 +182,7 @@
"sources" : [
{
"type" : "git",
"url" : "git://github.com/gentoo/eudev.git"
"url" : "https://github.com/gentoo/eudev.git"
}
]
},
@@ -218,7 +218,7 @@
{
"type" : "git",
"branch" : "main",
"url" : "git://github.com/hughsie/colord.git"
"url" : "https://github.com/hughsie/colord.git"
}
]
},
@@ -231,7 +231,8 @@
"sources" : [
{
"type" : "git",
"url" : "git://github.com/hughsie/colord-gtk.git"
"branch" : "main",
"url" : "https://github.com/hughsie/colord-gtk.git"
}
]
},
@@ -301,7 +302,7 @@
{
"type" : "git",
"url" : "https://gitlab.gnome.org/GNOME/libgweather.git",
"branch" : "libgweather-3"
"branch" : "main"
}
]
},
@@ -391,6 +392,7 @@
"sources" : [
{
"type" : "git",
"branch": "main",
"url" : "https://gitlab.gnome.org/GNOME/mobile-broadband-provider-info.git"
}
]
@@ -443,6 +445,7 @@
"-Dmbim=false",
"-Dplugin_dell=disabled",
"-Dplugin_foxconn=disabled",
"-Dplugin_fibocom=disabled",
"-Dqmi=false",
"-Dqrtr=false"
],
@@ -515,9 +518,9 @@
],
"sources" : [
{
"type" : "archive",
"url" : "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.4.46.tgz",
"sha256" : "9a90dcb86b99ae790ccab93b7585a31fbcbeec8c94bf0f7ab0ca0a87ea0c4b2d"
"type": "archive",
"url": "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.6.1.tgz",
"sha256": "9d576ea6962d7db8a2e2808574e8c257c15aef55f403a1fb5a0faf35de70e6f3"
}
]
},

View File

@@ -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,6 +1,6 @@
project(
'gnome-control-center', 'c',
version : '42.beta',
version : '43.beta',
license : 'GPL2+',
meson_version : '>= 0.53.0'
)
@@ -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')
@@ -128,6 +139,8 @@ gudev_dep = dependency('gudev-1.0', version: '>= 232')
x11_dep = dependency('x11')
xi_dep = dependency('xi', version: '>= 1.2')
epoxy_dep = dependency('epoxy')
gcr_dep = dependency('gcr-base-3')
pwquality_dep = dependency('pwquality', version: '>= 1.2.2')
m_dep = cc.find_library('m')
@@ -146,7 +159,7 @@ polkit_gobject_dep = dependency('polkit-gobject-1', version: '>= 0.103')
# https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/491
polkit_files = [ 'gettext/its/polkit.its', 'gettext/its/polkit.loc' ]
foreach polkit_file: polkit_files
r = run_command('build-aux/meson/find_xdg_file.py', polkit_file)
r = run_command('build-aux/meson/find_xdg_file.py', polkit_file, check: true)
assert(r.returncode() == 0, 'ITS support missing from polkit, please upgrade or contact your distribution')
endforeach
@@ -276,7 +289,7 @@ subdir('shell')
subdir('search-provider')
if get_option('tests')
# subdir('tests')
subdir('tests')
endif
if get_option('documentation')

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

@@ -35,6 +35,27 @@ 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;
item_a = (CcBackgroundItem *) a;
item_b = (CcBackgroundItem *) b;
if (strcmp (cc_background_item_get_name (item_a), "Default Background") == 0)
return -1;
if (strcmp (cc_background_item_get_name (item_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 +69,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

@@ -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

@@ -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

@@ -24,6 +24,22 @@ common_sources += gnome.mkenums(
vtail: ' { 0, NULL, NULL }\n };\n etype = g_@type@_register_static ("@EnumName@", values);\n }\n return etype;\n}\n'
)
resource_data = files(
'cc-language-chooser.ui',
'cc-language-row.ui',
'cc-list-row.ui',
'cc-time-editor.ui',
'cc-permission-infobar.ui',
)
common_sources += gnome.compile_resources(
'cc-common-resources',
'common.gresource.xml',
c_name: 'cc_common',
dependencies: resource_data,
export: true
)
generates_sources_dep = declare_dependency(
sources: common_sources,
)
@@ -55,22 +71,6 @@ sources = common_sources + files(
'cc-util.c'
)
resource_data = files(
'cc-language-chooser.ui',
'cc-language-row.ui',
'cc-list-row.ui',
'cc-time-editor.ui',
'cc-permission-infobar.ui',
)
sources += gnome.compile_resources(
'cc-common-resources',
'common.gresource.xml',
c_name: 'cc_common',
dependencies: resource_data,
export: true
)
deps = common_deps + [
generates_sources_dep,
gnome_desktop_dep,

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

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