Commit graph

23383 commits

Author SHA1 Message Date
Corey Berla
aae5cd27bd search-locations-dialog: Expose single directory setting
We handle index-single-directories and index-recursive-directories
different, but the user has no idea.  Add a subtitle to clarify
the difference in behavior.
2024-02-09 15:43:43 +00:00
Corey Berla
0268ad08cd search-locations-dialog: Reuse new function 2024-02-09 15:43:43 +00:00
Corey Berla
56d6fd7c2f search-locations-dialog: Correctly handle single directory setting
We wrongly assume that the only directory set to index-single-directories
is the home directory.  Now adays [1] tracker miners defaults home
and downloads to index-single-directories.  This leads to a behavior
where downloads appears to be unindexed (the switch is set to inactive),
but if you set the switch to active you will end up with downloads
in index-single-directories and index-recursive-directories.

Check the index-single-directories (as well as its default value)
to consistently handle this setting correctly.

[1] d97cf22273
2024-02-09 15:43:43 +00:00
Corey Berla
127bd170c2 search-locations-dialog: Set title for non-existent bookmarks
Show the bookmark name, but keep the switch invisible.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1916
2024-02-09 15:43:43 +00:00
Corey Berla
8baa4b159b search-locations-dialog: Stop leaking GError 2024-02-09 15:43:43 +00:00
Matthijs Velsink
8f541d0cff search-locations-dialog: Always show switch for default/bookmarks
However, for Default or Bookmarked locations, the switch is not shown if
the location is not found, but there is no reason to now allow the user
to switch that location of, even if not found.

We therefore now show the switch unconditionally for the Default and
Bookmarked locations. This allows a great deal of code simplification
too, as the file info query is now only used to place a subtitle if it
is not found.
2024-02-09 15:43:43 +00:00
Corey Berla
8568e45d9e search-locations-dialog: Sort entries
A regression from commit f473ec45c7 ("search: introduce the new Search
Locations dialog") causes the entries to be in a random order (as
determined by g_hash_table_get_values()). Previous to this commit,
there was a single listbox sorted by a custom sort func which grouped
XDG folders, bookmarks, and others. Now there's a listbox for each of
those groupings, but only others_list gets the sort func.  Sort each
of the lists, and remove unnecessary code.
2024-02-09 15:43:43 +00:00
Peter Eisenmann
2275ef3be0 search-locations-dialog: ignore on dismissed folder selection 2024-02-09 15:43:43 +00:00
Peter Eisenmann
fda78fa577 search-locations-dialog: handle unset XDG dirs
The user can disable XDG dirs by setting them to the home directory. In
this case `path_from_tracker_dir`returns NULL. Handle this case by
continuing.
2024-02-09 15:43:43 +00:00
Peter Eisenmann
03c1c72c52 search-locations-dialog: remove new()'s parent parameter
The dialog doesn't need to know where it will be shown.
2024-02-09 15:43:43 +00:00
Florian Müllner
ca76853c6e universal-access: Expose new "show-status-shapes" setting
Whether switches indicate their state with an icon has been split
from the HighContrast stylesheet. Expose the new setting.

https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2675
2024-02-09 13:29:43 +00:00
Automeris naranja
5cd007b7d2 printers: Add padding to the sidebar items from "Printer Options" 2024-02-09 07:22:31 +00:00
Allan Day
68213ade9f search: Tweak search locations labels
Make it clearer that the search locations are parts of the filesystem.

Fixes #2885
2024-02-08 17:07:58 +00:00
Automeris naranja
2d078ba147 users: Add tooltips to the buttons from the avatar widget
Also:

- Remove the a11y labels, because Orca also
reads tooltips
- Change "Edit Avatar" to "Change Avatar", since
the latter is more accurate: no image editing
happens when clicking in this button.
GNOME Contacts also use "Change Avatar"[1]

[1] https://gitlab.gnome.org/GNOME/gnome-contacts/-/blob/gnome-45/data/ui/contacts-editable-avatar.ui?ref_type=heads#L17
2024-02-08 12:19:23 +00:00
Automeris naranja
9209f5f149 power: Ship "info-symbolic" icon as a gresource
The Power panel currently installs "info-symbolic"
in /usr/share/icons, which makes this icon to appear
as a pre-installed system icon. This makes app
developers to use this icon in their apps
under that assumption.

Ship this icon as a gresource to fix this.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2865
2024-02-08 10:20:36 +00:00
Automeris naranja
85729203ff pp-options-dialog: Add .suggested-action style class to "Test Page" button 2024-02-08 10:03:12 +00:00
Automeris naranja
a6a9bdf1f1 pp-options-dialog: Add mnemonic to "Test Page" button 2024-02-08 10:03:12 +00:00
Automeris naranja
f4eb3daa9d alert-chooser-dialog: Show radio buttons as prefix widgets
Settings shows list rows with radio buttons before the
row title. However, the alert chooser looks inconsistent
because it shows the radio buttons at the end of the list
rows.

Fix that by setting the radio buttons as prefix widgets.
2024-02-08 10:00:16 +00:00
Matthijs Velsink
a8148b408c sound: Add tooltips to all speaker test buttons
With this change, Orca now reads the word
"speaker", for example: "Front Left Speaker push button"
instead of "Front Left push button".

Also, remove the a11y labels because Orca also reads
tooltips.
2024-02-08 01:44:59 -03:00
Peter Eisenmann
1b5c556740 search-panel: open dialog with string parameter
Settings is the central place to change search locations. Nautilus wants
to link to it, but since it's a dialog and not a panel, use a parameter
to enable opening search locations directly.
2024-02-07 19:24:17 +01:00
Peter Eisenmann
9c6b5a0b36 search-panel: use clearer dialog function name 2024-02-07 18:19:39 +00:00
Matthijs Velsink
a82b5ac9ef Revert "ci: Don't run style check on main"
Reverts d92b90d1, because `$CI_COMMIT_BRANCH` is not available for MRs...
2024-02-07 18:16:51 +00:00
Daniel Rusek
3087605d41 Update Czech translation 2024-02-07 00:02:28 +00:00
Emin Tufan Çetin
be497cd429 Update Turkish translation 2024-02-06 18:38:24 +00:00
Yosef Or Boczko
6d17b1d3a5 Update Hebrew translation 2024-02-06 13:56:19 +00:00
velsinki
9309b65f3d wifi: Change existing toast at each forget network
Merge request !2093 fixed 3 crashes in the Saved Networks Dialog, but
unfortunately added another one. Upon undoing an AdwToast after deleting
a network, Settings crashes.

Furthermore, the title of the toast is quite verbose, meaning it often
gets ellipsized. Also, deleting many networks is somewhat annoying
because many toasts get generated. Since only the latest toast is saved
in the NetDeviceWifi, mixed dismissing and undoing of multiple toasts
doesn't work properly either.

We fix all these issues by having only one toast, that either says
"Network deleted" or "%d networks deleted". The networks are kept in a
GPtrArray, for which the free function is set to either really forget
the networks or to undo forgetting them.
2024-02-06 12:35:46 +00:00
velsinki
cbd2b7b988 wifi: Start using saved_networks_list more
Commit 99b42130 introduced the `saved_networks_list` struct member, so
we do not need to set and get a "list" variable on the rows anymore
since they already contain the NetDeviceWifi.
2024-02-06 12:35:46 +00:00
Ondřej Pohořelský
e6978a4801 wifi: show password when sharing QR code
Added plain text Wi-Fi password when sharing Wi-Fi connection
Resolves: #2757
2024-02-06 10:02:50 +00:00
Matthijs Velsink
3a253bc4b1 general: Use g_clear_handle_id to remove GSources
Using `g_clear_handle_id()` in combination with `g_source_remove()` can
save a lot of boiler plate code.

This removes about 110 lines of code for free.
2024-02-06 09:22:07 +00:00
Carlos Garnacho
75ce02e202 wacom: Provide connector name for disambiguation
Provide the connector name as the fourth value in the
tablet's output setting. With recent Mutter, this will
allow disambiguating the mapped output if there happens
to be multiple outputs with the same EDID data.
2024-02-06 09:20:01 +00:00
velsinki
4786865aa6 a11y/hearing: Rephrase overamplification string
The subtitle for overamplification was changed to a single sentence in
!2232, but this reads slightly awkward.

Rephrase the sentence to be both shorter and include that we are
talking about "sound quality" here.
2024-02-06 09:08:57 +00:00
velsinki
996d03f426 printers: Sync string in .c file with .ui file
A period at the end of a string in pp-jobs-dialog.ui was removed in
!2231, but the actual translatable string in pp-jobs-dialog.c was not
modified.

This does that.
2024-02-06 09:08:57 +00:00
Corey Berla
d92b90d1b6 ci: Don't run style check on main
It always succeeds, so we are just wasting resources.
2024-02-06 09:08:03 +00:00
Yosef Or Boczko
c503238a1e Update Hebrew translation 2024-02-05 18:48:38 +00:00
Brandon Nielsen
5da525773f Move cc_remote_login_get_enabled before connection to notify::active
This prevents an issue where the handler can be erroneously called
by opening the sharing panel.
2024-02-05 12:06:42 +01:00
Brandon Nielsen
944f415215 Drop dependency on pkexec
Based on discussion on fedora-devel[0][1] drop the use of pkexec. pkexec
was used only for starting / stopping / enabling / disabling the sshd
service via systemd.

This changes the "org.gnome.controlcenter.remote-login-helper" policy to
request the necessary systemd permissions, and changes to using polkit
to request the permission, then making the dbus calls once the
permission is acquired.

This also cleans up targets of the dialog response functions as
discussed in the MR[3].

[0] - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/ZDZACAMG2E3P4K4P2CVBQ3XBBZ7CYSXA/
[1] - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/WCZW4Y4ONV5ZXU4JUCQUS56F3R6GNGJF/
[2] - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/F5INKYST7JUNU6FYKU5JJJWXCYOCM33I/
[3] - https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1179#note_1793602
2024-02-05 12:06:41 +01:00
Matthijs Velsink
b42b4ecf2f system/about: Create CcSystemDetailsWindow when idle
The CcSystemDetailsWindow is fairly slow to create, making the first
opening of it feel slightly unresponsive.

Resolve this by creating the window when idle.
2024-02-05 11:01:34 +00:00
Matthijs Velsink
0eb1eacb64 system/about: Do not leak CcSystemDetailsWindow
The window should be destroyed and unreferenced when the About page is
disposed to prevent leaking it.

We need to take the reference in order to not repeat #2823, since the
AdwWindow is initially floating.
2024-02-05 11:01:34 +00:00
Matthijs Velsink
343932964f system/about: Create CcSystemDetailsWindow upon opening
Initializing the About page involves creating a CcSystemDetailsWindow
too. This costs time, making the System panel open slower because it has
to wait for the About page to finish initializing.

By creating the CcSystemDetailsWindow only when it should be opened, we
save at least 0.1 s when opening the System panel.
2024-02-05 11:01:34 +00:00
Bastien Nocera
5748c50f44 shell: Fix typo in variable name
ellapsed -> elapsed
2024-02-05 10:59:13 +00:00
Automeris naranja
f623feed0a cc-sharing-networks: Use edit-delete-symbolic
window-close-symbolic shouldn't be used in this case.
Use edit-delete-symbolic instead.

See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2842
2024-02-05 10:58:49 +00:00
Monster
1d13e5852f search: Remove periods in subtitles 2024-02-05 10:58:08 +00:00
Monster
a4dc4d150e online-accounts: Remove period in description 2024-02-05 10:57:53 +00:00
Monster
de5ab92975 sharing: Remove period in description 2024-02-05 10:57:33 +00:00
Monster
94509facec mouse: Remove period in subtitle 2024-02-05 10:57:22 +00:00
Monster
d2abde0349 keyboard: Remove periods in descriptions 2024-02-05 10:57:11 +00:00
Monster
53771ae5cd printers: Remove periods from descriptions 2024-02-05 10:56:59 +00:00
Monster
5465afce01 accessibility: Correct periods 2024-02-05 10:56:04 +00:00
Monster
641633cf25 privacy: Remove periods from descriptions and subtitles 2024-02-05 10:55:38 +00:00
Monster
1b339a8d72 system: Remove periods from subtitles and labels 2024-02-05 10:55:18 +00:00