Commit graph

23913 commits

Author SHA1 Message Date
Automeris naranja
2e1d669a57 keyboard-shortcut-dialog: Set the GtkSearchBar capture widget in the .ui file
Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2743
2024-04-26 08:49:57 +00:00
Automeris naranja
ac40bcb7cb night-light-page: Add a missing period
According to [1], the string "This could be the result of
the graphics driver being used, or the desktop being used
remotely" should end with a period. This wasn't addressed
in [2], so add the period to fix this issue.

[1] https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2020
[2] 909f068672
2024-04-25 21:38:33 -03:00
Automeris naranja
5e8e127937 users, password-dialog: Use AdwAlertDialog instead of GtkMessageDialog 2024-04-25 09:14:10 +00:00
Automeris naranja
66005ad754 cc-password-dialog: Port to AdwDialog 2024-04-25 09:14:10 +00:00
Felipe Borges
0e2073c474 display, night-light: Simplify status page description condition 2024-04-25 10:32:18 +02:00
Automeris naranja
909f068672 display, night-light: Use AdwStatusPage when night light is unavailable
Night light can be unavailable in three cases:

- Device being used remotely
- Unsupported graphics driver
- Using a virtual machine

In all of these cases, a GtkInfoBar is shown. However, GtkInfoBar is
deprecated. AdwBanner is the replacement, but it's meant for short
text and the text explaining the three cases above is quite long for
AdwBanner. AdwStatusPage can be used with longer text, so use it.
2024-04-25 10:32:18 +02:00
Matthijs Velsink
b7e5ad8756 sound: Remove need for translating speaker test button tooltip
Splitting the translation for the CcSpeakerTestButton tooltip is not
ideal. However, fixing that would require keeping track of all the
`pa_channel_position_t` and translating all speaker names as well.

From context of the dialog, it's obvious that it is about testing
speakers, so we can also go with tooltips like "Front Left" instead
of "Front Left Speaker".

We then don't need any translations.
Partially reverts commit a8148b40, but keeps the tooltips and screen
reader output is the same now as before a8148b40.

Fixes #2905
2024-04-25 08:21:49 +00:00
Matthijs Velsink
fd651824d9 universal-access: Fix icon name in .desktop file
The full icon name is `org.gnome.Settings-accessibility-symbolic`. Even
though it was still being found due to the way icon lookup works, the
Fedora Update System (bodhi) Automated Testing tagged this with

Desktop file /usr/share/applications/gnome-universal-access-panel.desktop
on x86_64 references icon org.gnome.Settings-accessibility but no
subpackages contain org.gnome.Settings-accessibility

So, fix that.
2024-04-25 08:06:35 +00:00
Rafael Fontenelle
4d9556794f Update Brazilian Portuguese translation
(cherry picked from commit f740235532)
2024-04-25 02:14:33 +00:00
Automeris naranja
922614da08 mouse: Remove unnecessary a11y labels
AdwActionRow is already accessible by default.

Also, in [1] the GtkScales were set as activatable-widgets
of their corresponding rows, making the GtkScales to be
correctly a11y-labelled by the row title.

[1] 7e25cd8a8f
2024-04-23 20:47:33 -03:00
Martin
d48c99b8b7 Update Slovenian translation 2024-04-23 22:01:24 +00:00
Automeris naranja
f8c1c15ec1 printers: Use .boxed-list-separate in the printers list box
Each printer entry/row has several elements such as texts
and buttons. When there lots of printers showing in the
Printers panel (like in a corporate environment, for example),
the printer list can look very cluttered.

To fix this problem, use the new .boxed-list-separate style
class from libadwaita 1.6, which adds a gap between the rows
from a list box.
2024-04-23 15:24:29 +00:00
Felipe Borges
e5d94dd7b9 system, desktop-sharing: Don't refer fingerprint dialog 2024-04-23 10:22:12 +00:00
Felipe Borges
1b106970c4 system, remote-login: Don't refer verify encryption dialog
We don't need it. :)
2024-04-23 10:22:12 +00:00
Felipe Borges
2e2cde5fc5 system, remote-login: Recreate verify crypto dialog on button cb
The dialog gets destroyed when closing but it was only getting recreated
when g-r-d RDP credentials changed. Instead we should recreate the
dialog on demand, just like in desktop sharing.
2024-04-23 10:22:12 +00:00
Felipe Borges
c09543c6dc system, remote-login: Simplify has_fingerprint boolean check 2024-04-23 10:22:12 +00:00
Automeris naranja
8bd295f905 cc-encryption-fingerprint-dialog: Port to AdwDialog 2024-04-23 10:22:12 +00:00
Automeris naranja
1afa594112 firmware-security-page: Minor fixes
- In the "No Events" status page, use the .dim-label
style class instead of using the "opacity" property

- Fix a typo in a GtkStackPage name:
(page_unavaliable -> page_unavailable)

- Set the "Device Security Unavailable" status page
directly as a child widget of the panel_unavailable
GtkStackPage. Using AdwPreferencesPage/Group isn't
necessary

- Don't make the "Device Security Unavailable" status
page dimmed, as status pages from other panels aren't
dimmed

- Wrap the "No Events" status page into a GtkBox that
has the .card style, which avoids the .card looking
being incorrectly dimmed

- Use more descriptive names in the stack pages from
firmware_security_log_stack
2024-04-23 09:45:36 +00:00
Automeris naranja
ba2c942fe7 mouse: Add mnemonics to the Secondary Click options 2024-04-23 08:51:55 +00:00
Automeris naranja
7e25cd8a8f mouse: Use activatable-widget property in rows with GtkScales
Doing so, the GtkScales will be a11y-labelled.
2024-04-23 08:51:55 +00:00
Adrian Vovk
ec3823ac58 users: Fixup parental controls row visibility
Previously, the row would remain visible (and do nothing when clicked)
if g-c-c is compiled w/o support for libmalcontent. Now, we make sure to
only show the row if compiled w/ libmalcontent support.
2024-04-23 07:43:44 +00:00
Andika Triwidada
2e2ba583a0 Update Indonesian translation 2024-04-23 07:18:22 +00:00
Martin
e5f4985fb9 Update Slovenian translation 2024-04-22 14:18:21 +00:00
Fabio Tomat
f07a05af77 Update Friulian translation 2024-04-22 13:37:33 +00:00
Michael Catanzaro
5b6f66ad08 privacy: use yellow lock rather than green checkmark for HSI-1
This more clearly indicates that HSI-1 is firmly between HSI-0 and HSI-2
in goodness/badness. It is secure, so the lock icon is locked. It's just
not as great as HSI-2, so it's yellow rather than green.
2024-04-22 12:54:01 +00:00
Michael Catanzaro
fba9019d23 privacy: fix typo 2024-04-22 12:54:01 +00:00
Michael Catanzaro
6470669be2 privacy: don't fail on HSI-5 security level
Although it's currently impossible to achieve the HSI-5 security level,
it exists and we shouldn't fail if it somehow achieved.
2024-04-22 12:54:01 +00:00
Michael Catanzaro
c591a453d6 privacy: reword strings in firmware security page
Tweak the text slightly to improve clarity. For example, instead of just
saying "Checks Failed" let's say "Security Checks Failed." There is
room to make the strings slightly longer.

The hardest part here was deciding what to say about the HSI-1 security
level, which is not described very well currently. I've made the largest
changes at this level.
2024-04-22 12:54:01 +00:00
Andika Triwidada
9cd9656b82 Update Indonesian translation
(cherry picked from commit 6dc6d2428c)
2024-04-22 11:15:03 +00:00
Martin
a4f13f6df9 Update Slovenian translation 2024-04-19 21:45:08 +00:00
Yuri Chornoivan
8082430cfb Update Ukrainian translation 2024-04-19 16:40:40 +00:00
Matthijs Velsink
e7e9753aac display: Fix crash due to shortcut propagation phase
For a managed GtkShortcutController, changing its propagation phase
away from `GTK_PHASE_BUBBLE` currently results in a lingering reference
due to a bug in GTK (gtk#6246). This means the Escape key shortcut
remains active even after leaving the Display panel, resulting in a
crash when pressing Escape in any panel after leaving the Display panel.

This is now fixed in GTK (gtk!7115), but there seems to be no reason for
changing the propagation phase at all anyways. Since the callback
returns `GDK_EVENT_PROPAGATE` when it does not activate, the event
should still make it to other handlers.

So, to speed up the fix for gnome-control-center, we remove the
propagation phase changes althogether. There is also no need to let the
shortcut have global scope, managed is enough.

Closes #2768
2024-04-19 09:15:04 +00:00
Andi Chandler
08b23771f1 Update British English translation
(cherry picked from commit f6278f53d9)
2024-04-18 22:55:16 +00:00
Maximiliano Sandoval
7f93969583 privacy: Remove rows that had their perms reset
When a permission for an app is reset, e.g. via:

    flatpak permission-reset APP_ID

the Changed signal simply contains one fewer entry in its dictionary. If
we had a row for an app_id, and such app_id is not in the new
permissions we remove the row from the list box.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2993
2024-04-18 13:36:26 +00:00
Maximiliano Sandoval
6cdb19c6d7 privacy: Do not update on all Changed signals
The permission store emits more changes and these cause extra rows to
appear.

Partially fixes:
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2993
2024-04-18 13:36:26 +00:00
Automeris naranja
623909ccfa style: Add and use the .cc-placeholder-row style class
By creating a .cc-placeholder-row style class that
sets a padding, it won't be necessary to set margins
to every GtkLabel that is being used as list box
placeholder widgets.
2024-04-18 13:35:46 +00:00
Automeris naranja
e938483ae7 app-notifications-dialog: Remove content-height property
The list rows in this dialog aren't that many, so a
scrollbar likely won't appear when the dialog is being
presented as a floating window.
2024-04-18 08:52:00 +00:00
Automeris naranja
7650c6d0cb permission-infobar: Remove placeholder title
The title is already set in the *.c file; it's not necessary
to set a placeholder title in the *.ui file.
2024-04-18 08:50:12 +00:00
Automeris naranja
f91fe58587 permission-infobar: Use em dash
Use em dash in the "Error: some settings cannot be unlocked",
which is now "Error — some settings cannot be unlocked".
This improves consistency with the banner from Online Accounts
which says "Offline — unable to connect accounts" when the device
is offline; this banner text uses an em dash.
2024-04-18 08:50:12 +00:00
Automeris naranja
ac7b1d910d general: Use em dash in some places
Em dash is the correct punctuation mark to separate parts
of a sentence, not an en dash.

https://www.merriam-webster.com/grammar/em-dash-en-dash-how-to-use
2024-04-18 08:42:50 +00:00
Felipe Borges
b5768e4bf7 sharing, panel-loader: Hide "Sharing" panel when nothing to show
Since we started moving some settings from the Sharing panel to other
panels, we were left with only tree things in the Sharing panel for
gnome-46: hostname row, file sharing row, and media sharing row.

The hostname row is already in System ->About, so we should check
whether file-sharing or media-sharing are supported and show the panel
accordingly.

Fixes #2979
2024-04-18 10:26:17 +02:00
Felipe Borges
1b9e8a8a7a sharing: Don't pass a panel reference to schema check function
We don't need that here.
2024-04-18 10:25:36 +02:00
Felipe Borges
eb86eb11f1 sharing: Add mechanism to check availability of "Media Sharing"
So that we have a function to check whether we should show the "Media
Sharing" row.

This is going to be useful when we will try to hide the entire panel if
both "Media Sharing" and "File Sharing" aren't available.
2024-04-18 10:25:36 +02:00
Maximiliano Sandoval
5d830582de privacy: location: Unpack GVariant inside GVariant 2024-04-18 08:12:02 +00:00
Maximiliano Sandoval
55afa6df47 privacy: camera: Unpack GVariant inside GVariant
Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2982
2024-04-18 08:12:02 +00:00
Automeris naranja
7412482a38 ua-zoom-page: Stop making crosshair_overlap_mouse_row to follow sensitivity
Since [1], the crosshair options are now inside an
AdwExpanderRow, meaning that they don't need to be
insensitive when the "Crosshair Lines" option is
disabled because they get hidden in such case.
However, the "Overlap Mouse Cursor" row wasn't updated
in [1] to reflect that, so address this issue.

[1] 054d9c8769
2024-04-16 20:31:01 -03:00
Automeris naranja
054d9c8769 ua-zoom-page: Use AdwExpanderRow in the "Crosshair Lines" row
When the Crosshair Lines option is disabled, the crosshair options
appear insensitive and consume vertical space unnecessarily. Use
AdwExpanderRow to fix this.
2024-04-16 22:16:48 +00:00
Lukáš Tyrychtr
c3483b3a68 universal-access: Add a few activatable widgets in the typing page
This also fixes missing a11y labels for the sliders.
Fixes #2998.
2024-04-16 13:51:26 +02:00
Martin
6d47589d8c Update Slovenian translation 2024-04-16 06:43:17 +00:00
Automeris naranja
accd5b670e removable-media-settings: Minor UI tweaks to follow mockups
- Rename the "Other Media" row to "Other Media Types" (including
the window title) and remove its subtitle
- Rename "Automatically Launch Apps" row to "Media Autostart"
and use "Start apps or prompt when media is connected" as its new
subtitle

Reference:
288a451db2
2024-04-15 13:08:30 +00:00