Commit graph

24167 commits

Author SHA1 Message Date
Felipe Borges
541e11451e build, flatpak: Fix build-option for gnome-online-accounts 2024-06-15 07:20:05 +00:00
Felipe Borges
a4c1555bae apps: Don't show "Open" button for Settings itself
Fixes #3000
2024-06-13 15:20:25 +02:00
Felipe Borges
a18eb3319b sound: Use AppInfo to get app icons and fallback to icon-theme
This makes the apps more recognizable and avoids some cases when
app icons can't be found for third party apps.

See #2740
2024-06-13 09:21:20 +00:00
Automeris naranja
8082f9be8f search-locations: Use AdwButtonRow in the "Add Location..." button
Also, remove the list box placeholder since the button will appear
even when the list is empty. The button now acts like a placeholder
too.

Co-authored-by: Matthijs Velsink <mvelsink@gnome.org>
2024-06-13 09:04:25 +00:00
Matthijs Velsink
09a001e47a search-locations: Use GtkListBoxSortFunc type directly
No need to have all this casting when we can just define the sorting
function like GtkListBoxSortFunc.
2024-06-13 09:04:25 +00:00
Felipe Borges
18398e2986 printers, new-printer-dialog: Handle "Escape" shortcut in ui file
As suggested by Matthijs Velsink, it is much cleaner handling UI
related things in the .ui file.

This is a cleaner version of commit 3f612ab81

Related to !2656, fixing #3086
2024-06-13 10:32:48 +02:00
Automeris naranja
fb9b6a0c5c pp-jobs-dialog: Don't use AdwStatusPage inside a GtkBox
AdwStatusPage has a built-in GtkScrolledWindow and it can't be used
with other widgets. Put the GtkStack directly in AdwDialog:property
instead.

Doing so, the AdwStatusPage no longer needs the vexpand property.
2024-06-12 22:47:23 -03:00
Automeris naranja
d8e2ae3358 pp-jobs-dialog: Use AdwWindowTitle
Use AdwWindowTitle and show the printer name using
AdwWindowTitle:subtitle. This gives more room to show the printer name,
especially when the name long, which is prone to get ellipsized.
2024-06-12 14:29:14 +00:00
Felipe Borges
3f612ab812 printers: Close new printer dialog when pressing Escape key
The GtkSearchEntry dialog was eating up the Escape key press events,
causing the dialog not to close as expected.

This adds a controller to explicitly handle key-press events on a
dialog level, which will close the dialog for the Escape key and
just propagate the event down the chain otherwise.

Fixes #3086
2024-06-12 14:14:35 +00:00
Felipe Borges
7da19bfeec color: Capitalize "Built-In Webcam"
It is a noun.

See https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2652#note_2137723
2024-06-11 09:25:21 +00:00
Adrien Plazas
4ef93bb2c7 color: "Laptop Screen" → "Built-In Screen"
Laptops aren't the only devices GNOME cas run on that have an internal
screen, there are also smartphones and all-in-one desktops. This updates
the a label and some translators comments to reflect that.

Signed-off-by: Adrien Plazas <aplazas@gnome.org>
2024-06-11 09:25:21 +00:00
Automeris naranja
d8233292a2 pp-job-row: Use new icon in the priority button 2024-06-11 09:24:59 +00:00
Automeris naranja
dd78b58ebf pp-job-row: Make all buttons flat 2024-06-11 09:24:59 +00:00
Automeris naranja
2903aee9f5 pp-jobs-dialog: Modernize the UI
- Use AdwPreferencesPage, AdwPreferencesGroup and
AdwStatusPage
- Remove the .view style class
- Add the .boxed-list style class to the jobs list box
- Add mnemonic to the "Clear All" button
2024-06-11 09:24:59 +00:00
Automeris naranja
5d0909ae20 pp-jobs-dialog: Port to AdwDialog 2024-06-11 09:24:59 +00:00
Automeris naranja
8d25eafc21 pp-job-row: Add tooltips to all buttons
Also:
- Remove the a11y label from the Pause button
since tooltips are also read by Orca
- Make the priority button to always have a tooltip
2024-06-11 09:24:59 +00:00
Automeris naranja
fee83c309b pp-job-row: Port to AdwActionRow
Also, set the state label as a suffix widget and add
the .dim-label style class, improving consistency with
other rows in Settings.
2024-06-11 09:24:59 +00:00
Automeris naranja
ecb4a9e36c color-profile: Port to AdwActionRow
Also, remove the margins from CCListRowInfoButton and
widget_button, as they are unnecessary.
2024-06-11 09:11:41 +00:00
Automeris naranja
8d51b21823 color-device: Port to AdwActionRow
Also:
- Use gtk_button_new_from_icon_name instead of
embedding a GtkImage into a GtkButton
- Remove margins from "widget_button" and "widget_nocalib",
because suffix widgets from AdwActionRows already have
margins
- Place the "Not Calibrated" label before the switches and
use header capitalization in it, as advised by HIG
- Decrease the "widget_nocalib" margin-end to "6", so it doesn't
look too far from the switches
2024-06-11 09:11:41 +00:00
Peter Hutterer
4ae9d83286 wacom: Correct the link to gnome help
Existing tablet help entries are grouped under "wacom-" so let's assume this
will be what we'll end up with.

https://gitlab.gnome.org/GNOME/gnome-user-docs/-/merge_requests/180
2024-06-10 07:56:09 +00:00
Automeris naranja
5227be3d78 add-user-dialog: Don't use "adw_alert_dialog_format_body"
There isn't a formatted string, so adw_alert_dialog_set_body must
be used instead.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/3087
2024-06-10 07:55:30 +00:00
Automeris naranja
cfcea08372 remote-desktop: Set "—" as the placeholder for the "Port" row subtitle
Instead of showing an empty space as the placeholder for the "Port" row
subtitle, use "—", like Nautilus and Disks does when a value is empty,
for example.
2024-06-09 18:29:46 -03:00
Automeris naranja
fdb0528464 apps: Fix disabled rows wrongly having a mnemonic
These rows aren't activatable, so using a mnemonic isn't necessary.
Another thing is that the rows aren't using
AdwPreferencesRow:use-underline, which makes the row title to look
broken.

Remove the underlines and also add a mnemonic to the Camera switch
row.
2024-06-06 14:46:33 -03:00
Peter Hutterer
b82621a36c wacom: Fall back to the generic tablet provided by libwacom
Whether libwacom knows about a tablet has no effect on whether the
tablet works, only whether we know how to map it, which styli are
available, etc.

Instead of pretending there is no tablet connected let's use the
libwacom fallback tablet instead. As of libwacom 2.11 that defaults to a
built-in tablet (the vast majority of devices these days) which means we
can at least map this to an output, calibrate it etc.
2024-06-04 11:54:22 +00:00
Automeris naranja
59e0d08e56 printers: Add "pp" prefix to some dialog GtkBuilder file names
Doing so, these dialog file names will match their respective
C and header file names.
2024-06-04 09:52:29 +00:00
Jakub Steiner
78c840ba57 cursor-size-dialog: use same size for cursors
- all cursors use 96x96px canvas
2024-06-04 09:48:44 +00:00
Automeris naranja
7b4e95ae99 cursor-size-dialog: Use GtkFlowBox to group the cursor buttons
Doing so, the dialog will be adaptive in when the window
width is narrow.

Also, ditch the .linked style class, because the buttons
are now in a reflowing grid.
2024-06-04 09:48:44 +00:00
Automeris naranja
c9dedb82e6 cursor-size-dialog: Port to AdwDialog 2024-06-04 09:48:44 +00:00
Automeris naranja
99ab03fd45 about-page: Add AdwActionRow:subtitle-selectable to several rows
This allows to copy the row contents without opening the System
Details dialog. This can be useful if the user just wants to
copy the hardware model, for example.
2024-06-04 09:44:57 +00:00
Peter Hutterer
a966a067c1 wacom: If we have two identical monitors, suffix the connector name
Check if any two monitor display names are identical, if so use a
display name like 'Manufacturer 27" (HDMI-1)'.
2024-06-04 09:35:19 +00:00
Peter Hutterer
491c945ca6 wacom: Use CcDisplayMonitor and friends to get monitor names
Remove the gnome_rr_* bindings and substitute them with the respective
calls from the CcDisplayMonitor. This way we get the same monitor names
as the display panel.

Closes #1821
2024-06-04 09:35:19 +00:00
Peter Hutterer
3bb33bbfa7 display: Add getters for monitor vendor, product and serial 2024-06-04 09:35:19 +00:00
Automeris naranja
60300f7f9e pp-details-dialog: Port to AdwDialog 2024-06-03 08:49:37 +00:00
Automeris naranja
d824ed115c wacom: Port "Grip Pen" to AdwDialog 2024-06-03 07:57:16 +00:00
Felipe Borges
7248ebb5dc printers: Recreate destroyed toasts
We re-use a toast for the "Undo" feature, but the toast widget gets
destroyed in the first interaction, causing a crash on a second deletion
when we reference a NULL self->toast.

See https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2596#note_2114598
2024-06-03 07:54:13 +00:00
Automeris naranja
6322d8d6f0 printers: Use AdwToast to show status & error messages
Use AdwToast to show when a printer was removed and when
adding a printer fails.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2999
2024-06-03 07:54:13 +00:00
Matthijs Velsink
bc171a6d2d mouse-test: Remove primary indicator delay
Instead, instantly show a primary click was successful. For a double
click, it will remove the primary click success. This makes the testing
feel a little more responsive.

Closes #2991
2024-06-03 07:52:51 +00:00
Automeris naranja
5e00183b6b qr-code-dialog: Minor changes to the "Scan to Connect" label
- Add GtkLabel:wrap, otherwise qr-code-dialog width will grow
if the label is long
- Justify the label to the center so it looks more balanced
when it wraps
2024-06-02 21:29:49 -03:00
Automeris naranja
b1715487d6 qr-code-dialog: Use AdwPreferencesPage and property rows
The "Network Name" and "Password" labels look unbalanced if they
are long. To fix this, use property rows to show the network
information, which also involves porting the GtkScrolledWindow
to AdwPreferencesPage.
2024-06-02 21:29:49 -03:00
Automeris naranja
4ffffd6a5d qr-code-dialog: Add a comment explaining about the QR code being focusable
The rationale didn't get added in [1]. See [2] for more information.

[1] 0aa4e012cd
[2] https://gitlab.gnome.org/GNOME/gtk/-/issues/6749
2024-06-02 21:25:31 -03:00
Automeris naranja
0aa4e012cd qr-code-dialog: Make the dialog contents readable by Orca
- Make the QR code focusable, so the alternative text can be read
by Orca
- Make all labels selectable, but with a workaround to prevent them
showing selected without any user interaction (labels need to be
selectable so they can be read)
2024-06-03 00:07:14 +00:00
Automeris naranja
26c22045dd input-list-box: Remove "No input source selected" placeholder row
This placeholder row will never show because the list box will never be
empty due to the presence of the "Add Input Source" row, which also acts
as a placeholder. Also, the placeholder row broke the list box row
counting even more.

So, remove the "No input source selected" placeholder row, as it's
unnecessary.
2024-06-02 22:54:38 +00:00
Matthijs Velsink
9ff4df5d5e mouse-test: Don't respond to middle clicks
The indicators should only light up for primary or secondary clicks, but
not for a middle click.

To make this clearer too, we can use Gdk constants.

Fixes #3079
2024-06-01 21:28:01 +02:00
Martin
3ac6ae32cf Update Slovenian translation 2024-05-31 13:38:21 +00:00
Matthijs Velsink
6a96efe5f8 privacy,usage: Port to CcNumberRow
This saves a lot of code and translatable strings. Also, this will make
it easier to change the list values in the future, as they will be added
to the list even if a value is set that is not in the list.

By binding to the GSettings keys directly, even more code can be
removed.
2024-05-31 09:47:16 +00:00
Matthijs Velsink
7cbea49005 number-row: Add value type for value in days
This will be useful for the File History & Trash page from Privacy.
2024-05-31 09:47:16 +00:00
Jakub Steiner
be7ef13193 sound: Adjust click effect
- bring click closer to the sound of fdo's bell.

See https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/-/merge_requests/81
2024-05-31 08:57:23 +00:00
Jamie Gravendeel
02792f3c8e Revert "users: Don't use another style class for the remove avatar button"
This reverts commit 62564c623f.

The custom style class was used to provide different styling than the default destructive style, since the custom style class doesn't affect the opacity of the background.
2024-05-31 08:33:33 +00:00
Automeris naranja
88d74d060f apps: Use ellipsis symbol in the Storage dialog
When the cache or app data size are being calculated, three periods
(...) are shown instead of an ellipsis symbol (…), which is what
HIG recommends:

https://developer.gnome.org/hig/guidelines/typography.html#take-advantage-of-unicode
2024-05-30 21:09:51 +00:00
Felipe Borges
d940df174f network: Reference icon-name that exists in wifi panel desktop file
Similarly to fd65182, rpminspect catched that gnome-wifi-panel.desktop
references an icon name that doesn't exist.

```
Desktop file /usr/share/applications/gnome-wifi-panel.desktop on x86_64 references icon network-wireless but no subpackages contain network-wireless
```

The way the icon lookup works will suffix it with "-symbolic", resulting
in "network-wireless-symbolic", which exists.

While MR !2452 provided settings icons for various panels, it didn't for
the Wifi panel.
2024-05-30 21:05:04 +00:00