Commit graph

24085 commits

Author SHA1 Message Date
Xiaoguang Wang
0a3ae1b448 users-page: Don't show the system accounts
When handling user-added signal, omit the system accounts.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/3066
2024-05-28 13:51:26 +00:00
Jamie Gravendeel
c09fb7a65f users: Port buttons to AdwButtonRow 2024-05-28 13:48:02 +00:00
Automeris naranja
e51fa8febc ua-mouse-page: Add "Activate Windows on Hover" setting
Design reference:
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2962#note_2079399

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2962
2024-05-28 13:18:32 +00:00
Automeris naranja
7a210d3054 sharing: Make Orca to read the "Add Folder" row in Media Sharing
[1] replaced the "Add Folder" a11y label by a tooltip.
However, this doesn't work and Orca doesn't read the row
properly; it simply says "not selected". The a11y label
already didn't work prior to [1].

To fix this, transform the tooltip into a GtkLabel. Also,
make the row to have the same padding so it's consistent
with the "Add Input Source..." row from Keyboard > Input
Methods.

[1] 00d9cd012f
2024-05-28 11:02:16 +00:00
Jamie Gravendeel
e95464c469 a11y: Port test flash row to AdwButtonRow 2024-05-28 10:57:22 +00:00
Jamie Gravendeel
ce2ad9074f mouse: Replace test buttons with AdwButtonRow 2024-05-28 10:52:00 +00:00
Jamie Gravendeel
d503ad68b6 apps: Use AdwButtonRow in dialogs 2024-05-28 10:43:57 +00:00
Jamie Gravendeel
0384e6662e keyboard: Use AdwButtonRow in shortcuts dialog
Ports the "Reset All…" button to AdwButtonRow.
2024-05-28 10:41:19 +00:00
Automeris naranja
cd7575b780 sharing: Reuse "gtk_widget_get_root (GTK_WIDGET (self)"
"gtk_widget_get_root (GTK_WIDGET (self)" is used by both
"File Sharing" and "Media Sharing" dialogs, so there is
no need to create this method twice.
2024-05-28 09:40:28 +00:00
Automeris naranja
0f2b8afef3 sharing: Add "Security" heading in the "File Sharing" dialog
In the "File Sharing" dialog, add a "Security" heading
in the section that groups the "Require Password" and
"Password" rows.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2583#note_2113966
2024-05-28 09:40:28 +00:00
Automeris naranja
90e7a9cfd3 sharing: Add shortcut to open the Public folder in the "File Sharing" dialog
Add a shortcut to open the Public folder in the File Sharing dialog,
as this folder is crucial for the file sharing functionality. Also,
this change improves the discoverability of that folder and offers a
convenience of opening it directly from the dialog.
2024-05-28 09:40:28 +00:00
Matthijs Velsink
fa2cf5a5f2 meson, ci: Bump Libadwaita version to 1.6.alpha
This requires building from source, so do that for ci.
2024-05-28 09:23:50 +00:00
Automeris naranja
78c837ab92 wifi: Mimic AdwStatusPage when showing Wi-Fi Hotspot status
AdwStatusPage can't be used with other widgets because it
contains a GtkScrolledWindow, so mimic AdwStatusPage to
show Wi-Fi Hotspot status.

Also:
- Add a mnemonic to the "Turn Off Hotspot..." button.
- Use the new strings from the latest mockups [1]

[1] cfb7cae4a9
2024-05-27 22:31:04 +00:00
Martin
dba2f088d9 Update Slovenian translation 2024-05-27 12:20:46 +00:00
Joshua
074c5fd804 keyboard: Removing unnecessary common_inc include
Removing an unnecessary include to common and some minor adjustments to
better fit existing conventions.
2024-05-27 10:48:21 +00:00
Joshua Dickens
d6aaff9458 keyboard: Share keyboard-shortcuts for use in the Wacom panel
Changes the meson.build files to allow sharing of keyboard-shortcuts
for use in the new wacom stylus keyboard shortcuts feature.
2024-05-27 10:48:21 +00:00
Matthijs Velsink
bc5c9976e6 ci: Make build stage output reusable artifact, speed up
Some time ago an attempt was made to store untracked output as artifact,
but since `$(pwd)` wasn't evaluating anyways, nothing was uploaded. See
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/31035#note_1555090802.

Also, the test restarts the entire build, which is not needed
and takes a long time.

Instead, we can have the Meson build output stored as artifact, and have
the test just run without rebuild. This speeds up the CI.

The sanitizers should not pull the artifact though, so make those only
depend on the container.
2024-05-27 10:20:28 +00:00
Matthijs Velsink
7f541b4211 ci: Use updated meson commands and not ninja
The command `meson . _build` was depecrated in favor of `meson setup
_build`, so let's use that instead.

Also, stop using ninja commands directly, as meson has support for that
syntax now too, making for a more consistent interface.
2024-05-27 10:20:28 +00:00
Matthijs Velsink
670404f222 ci: Fix and simplify sanitizers
Memory sanitizer needs `compiler-rt` to link properly.

There's a YAML anchor that specifies the basic keys already, so no need
to repeat them.

Also, remove a left over comment.
2024-05-27 10:20:28 +00:00
Matthijs Velsink
d427c2511d ci: Fix tests for GTK 4.15
GTK 4.15 made the new Vulkan renderer the default. I tried getting the
tests to pass using that, but could not.

So for now, revert to the `new GL` renderer, which is still very new as
well.
2024-05-27 10:20:28 +00:00
Matthijs Velsink
94c2919cc3 ci: Stop specifying dependencies manually
Fedora obviously builds gnome-control-center as well, and therefore
allows one to get all the required deps with `dnf builddep`. We can use
that to clean up the dependency list massively.

If we do need specific packages, we can add them in the future, but that
was anyways needed for new dependencies.
2024-05-27 10:20:28 +00:00
Matthijs Velsink
33277d3aec ci: Properly save build logs as artifact
The `artifacts` key for a job can only be specified once, so using a
YAML anchor for it does not directly work. Instead, we have to do it
inside `artifacts`.
2024-05-27 10:20:28 +00:00
Matthijs Velsink
ea44120f0c ci: Update FDO ci-templates version
To build a new container, it looks like
185ede0e9b
is needed.

However, we cannot update to the newest ci-templates version, as from
logs it appears there is currently an issue with `buildah rm` (possibly
https://github.com/containers/buildah/issues/5488). This might be
related to the podman version being used.

As per the suggestion in
https://gitlab.gnome.org/Infrastructure/Infrastructure/-/issues/1247#note_1992394
let's update to the what seems to be the last working version.
2024-05-27 10:20:28 +00:00
Matthijs Velsink
5a43d7ab9b ci: Start using FDO_REPO_SUFFIX for clearer image names
Currently, containers get stored based on their Fedora version, but that
can make it hard to see which container is used in which branch.
Instead, we can use `FDO_REPO_SUFFIX` to sort the containers based on
their branch name.

This would also make it easier to see which containers can be removed,
as there are currently gigabytes of unused containers it seems.

To make it as neat as possible, the images now get stored as
`main/2024-05-19.0-fedora-rawhide` for example.
2024-05-27 10:20:28 +00:00
Matthijs Velsink
246510777c ci: Stop building gnome-online-accounts from git
Recent improvements to GOA (among which a port to GTK4) required
building it from git. Now that Fedora 40 is out with that version in it,
we can use that instead.
2024-05-27 10:20:28 +00:00
Matthijs Velsink
77702c929b ci: Stop building some deps from the GTK4 port era
When the switch to GTK4 happened, commit b3b86894 introduced manual
builds of some dependencies as GTK4 support was still very new. Now that
GTK4 has been out for quite some time, these dependencies are available
in Fedora with GTK4 support, so just use them instead.

Note that `gnome-desktop3-devel` is still needed for the g-s-d build.
2024-05-27 10:20:28 +00:00
Matthijs Velsink
0c5b674763 ci: Remove "crun" tag
This was needed as a workaround for Infrastructure/GitLab#545, but that
has long been solved.

The manual asan test can (potentially) be used again too now.
2024-05-27 10:20:28 +00:00
Matthijs Velsink
98604e92ae shell, cc-panel: Remove unused struct member
The `subpage` struct member was previously used to communicate subpage
changes via a notify signal.

That's not done anymore, so we can remove it.
2024-05-27 08:00:46 +00:00
Matthijs Velsink
a10ca6d29a shell, cc-panel: Use GTYPE_TO_POINTER/GPOINTER_TO_GTYPE
A `GType` is not an integer, but either `size_t` or `uintptr_t`. So
casting it to int might lose bits of info, resulting in an invalid
`GType`.

Fixes #3062
2024-05-27 08:00:46 +00:00
Matthijs Velsink
6339f2e6d8 shell, cc-panel: Reuse set_subpage() for navigation.push
The `set_subpage()` function already has good error checking for valid
tags, so reuse that for the `navigation.push` action callback.

Note that this likely won't fix #3062, as there the tag must exist in
the hashtable, as `g_object_new()` won't crash if you pass `NULL` to it.
2024-05-27 08:00:46 +00:00
Automeris naranja
0da10f03ad sound: Don't show "No Input Devices" if an input device is present
In [1], the "input_no_devices_group" group, which contains the
"No Input Devices" row, was incorrectly set as visible even if
cc_device_combo_box_get_device returns an input device.

[1] bf6f72278e (70e2cb14ab74f7db514bb2315ba0112a97aee1b8_208_196)

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/3070
2024-05-26 11:51:36 +00:00
Asier Sarasua Garmendia
cb238e3204 Update Basque translation
(cherry picked from commit f00aa4726f)
2024-05-26 09:36:10 +00:00
Jamie Gravendeel
1f753b0313
system: Use correct update symbolic 2024-05-22 14:21:44 +02:00
Automeris naranja
466685638f ua-seeing-page: Set "Screen Reader" as the first row
Doing so, the screen reader row will be easier to reach,
specially when using a keyboard, and easier to spot too.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2685
2024-05-22 11:49:21 +00:00
Matthijs Velsink
08e32e9573 display: Fix crash from closing lid
When closing the lid on a laptop, the number of active monitors drops to
zero. However, `monitor_labeler_show()` always assumes at least one
monitor is active, as it unconditionally closes the `GVariantBuilder`.

This causes a crash when there is no monitor added to the
`GVariantBuilder`, however, as no value was added to it.

Instead, only close the `GVariantBuilder` when we're actually going to
use it and know a value was added.

Commit ca9228bb fixed a similar crash for when there are no outputs at
all. But in this case, there is still an output, it is just not active,
only with the active UI number as 0.

Fixes #3058
2024-05-21 22:57:48 +02:00
Automeris naranja
72ff325415 wi-fi: Fix the description alignment of the "Wi-Fi Unavailable" status page 2024-05-21 10:05:27 +00:00
Automeris naranja
100474be23 cc-window: Stop setting default window size
Adw(Application)Window now has a default size[1], so
setting a default window size in Settings isn't
necessary anymore.

[1] 7a705c7959
2024-05-21 08:01:23 +00:00
Automeris naranja
89c859732c qr-code-dialog: Fix QR code becoming unreadable when the dialog is small
When resizing the parent window to its minimum size, the QR
code from the Share Network dialog becomes so small that it
can't be read. This regression appeared with the port to
AdwDialog.

To fix this, add min-width/height properties to the QR code
image and use a GtkScrolledWindow to make the dialog contents
scrollable.
2024-05-20 21:09:33 -03:00
Martin
65e875af68 Update Slovenian translation 2024-05-20 13:53:09 +00:00
Artur S0
eda4dfc01f Update Russian translation 2024-05-20 10:47:52 +00:00
Automeris naranja
48aa904082 vpn-helpers: Port AdwMessageDialog to AdwAlertDialog
Also, rename the "Close" button to "OK", as other alert dialogs that
show error messages have a button labeled as "OK" instead of "Close".
2024-05-20 10:00:58 +00:00
Automeris naranja
5326f73607 ce-page-details: Add missing mnemonic to the "Forget Connection?" dialog 2024-05-20 10:00:58 +00:00
Automeris naranja
c394ee0e23 ce-page-details: Port AdwMessageDialog to AdwAlertDialog 2024-05-20 10:00:58 +00:00
Automeris naranja
c3239fd5ef apps: Don't use AdwStatusPage inside an AdwPreferencesPage
Both AdwStatusPage and AdwPreferencesPage have a GtkScrolledWindow.
This can cause scrolling to break. To fix this, separate both widgets
into their own stack pages.

Also, remove "app_search_stack_page" object ID, as it's unused by the
C code.
2024-05-19 23:49:05 +00:00
Automeris naranja
cd97e4f518 apps: Put the search entry instead a GtkSearchBar
Doing so, when the window is narrow, the search entry will
have some padding, avoiding the search entry being too near
to the window borders.
2024-05-19 23:49:05 +00:00
Automeris naranja
d5a055b96c apps: Set the search entry as a top child of AdwToolbarView
Doing so, the search entry won't get hidden when scrolling
through the app list. This is neeeded to stop using the
"No Apps Found" together with AdwPreferencesPage, because
both widgets have a GtkScrolledWindow; this can cause
scrolling to break.
2024-05-19 23:49:05 +00:00
Automeris naranja
870b26ecdc pp-details-dialog: Modernize the UI
- Use modern widgets like AdwPreferencesPage/Group,
AdwEntryRow and AdwPropertyRow

- Set a minimum size for the window

- Add .error class to the printer name entry
when the name is invalid

- Restyle the printer name error message

- Add missing mnemonics
2024-05-19 22:17:12 +00:00
Jordi Mas i Hernandez
0bbeba5124 Update Catalan translation 2024-05-19 07:37:12 +00:00
Automeris naranja
d639a95457 usage: Minor style fixes
- Sort widget and callback names alphabetically in the
C code
- Fix indentation
2024-05-18 11:04:58 +02:00
Automeris naranja
2771714a58 usage: Remove unused stuff
- Remove the "run_warning" method, as it's no longer needed
now that all AdwAlertDialogs are located in the .ui file
- Remove "clear_recent_button" object ID, as it's unused by
the C code
2024-05-18 11:04:58 +02:00