Commit graph

186 commits

Author SHA1 Message Date
Matthijs Velsink
54003b5f38 system: Switch to using gnome.mkenums_simple
This simplifies the Meson build file, and removes the inline mkenums
template code, which is now inside Meson itself.

Also, we can now use the better prefix `G_DESKTOP_TYPE` instead of
`G_DESKTOP_TYPE_DESKTOP`.
2024-05-30 08:12:01 +00:00
Felipe Borges
89bd8b4626 remote-desktop: Don't set credentials when they didn't change
When the entry changes, it triggers the callback dance to store the
values in the backend. Causing `gtk_editable_set_text` to be essentially
called every REMOTE_DESKTOP_STORE_CREDENTIALS_TIMEOUT_S seconds (2
seconds) even when credentials have changed. This call has visual
effects, such as moving the cursor caret and changing the entry
selection state.

Fixes #3077
2024-05-29 12:58:07 +00:00
Jamie Gravendeel
983ed0496a remote-desktop: Move buttons to AdwButtonRow 2024-05-29 08:41:44 +00:00
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
Jamie Gravendeel
1f753b0313
system: Use correct update symbolic 2024-05-22 14:21:44 +02:00
Felipe Borges
ba74864b61 cc-panel: Require explicit "subpage" widget child type for subpages
Require the use of <child type="subpage"> for when an AdwNavigationPage
is expected to be added to CcPanel.navigation.

This way we can avoid programming errors when a child widget is wrongly
packed in the navigation view.

See also https://gitlab.gnome.org/GNOME/gnome-control-center/-/wikis/shell/CcPanel#child-packing

Co-authored-by: Matthijs Velsink <mvelsink@gnome.org>
2024-05-17 09:18:00 +00:00
Felipe Borges
24a07fbef4 system: Drop mistaken <child type="child"> xml node in UI file 2024-05-17 09:18:00 +00:00
Felipe Borges
a620b9572f system: Use CcPanel.add_static_subpage
So that we can use CcPanel's mechanism to dynamically create pages on
demand.
2024-05-17 09:18:00 +00:00
Felipe Borges
d721c0c7ca system: Remove CcSystem.navigation in favour of CcPanel.navigation
Makes use of the cc_panel_push_subpage method.

The changes in cc-system-panel.ui are better reviewed without identation
changes, using "git diff -w", "git show -w".
2024-05-17 09:18:00 +00:00
Felipe Borges
0656fc9f06 system, about: Force untranslated text for system info text content
Fixes #3047
2024-05-17 08:51:40 +00:00
Felipe Borges
44ad87bef7 system, about: Drop translatable strings from "Copy" content
So that users can share the content in English while copying it
into bug trackers.
2024-05-17 08:51:40 +00:00
Automeris naranja
2867c3e761 user-page: Re-add the notice about the "Automatic Login" option
In [1], CcListRowInfoButton was added to the "Automatic Login"
row to explain what the automatic login option does. However,
it was accidentally removed in [2], so re-add-it.

See also https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2235

[1] d586df5c87
[2] d52ec68f8d (679a0ff6735df8f5a352572f78592e3c8610ec9e_136_0)
2024-05-17 07:44:33 +00:00
Automeris naranja
80d86f9d89 add-user-dialog: Port GtkMessageDialog to AdwAlertDialog 2024-05-17 00:23:36 +00:00
Automeris naranja
9a967bc1a9 user-page: Use detailed reponse in AdwAlertDialog
Doing so, the callback doesn't need to have a string to compare.
2024-05-17 00:10:33 +00:00
Automeris naranja
3455e01b3f user-page: Port "Remove [user]?" to AdwAlertDialog
Also, remove the AdwAlertDialog argument in "remove_local_user_response",
as it's unused.
2024-05-15 10:46:40 +00:00
Automeris naranja
168e30a410 general: Don't set some "Copy" buttons as activatable widgets
In rows that have a "Copy" button that is set as activatable
widget, Orca doesn't the buttons a11y label/tooltip; instead,
it reads "[row title] push button".

To fix this, don't set these buttons as activatable widgets.
2024-05-13 23:13:55 -03:00
Matthijs Velsink
67be010833 datetime: Remove unused self variable
Commit 1c081549 fixed a crash in the datetime page, but forgot to remove
a `self` variable that is unused now.
2024-05-07 00:41:14 +02:00
Automeris naranja
aaa08b8194 datetime-page: Set a content width in the "Date & Time" dialog
The GtkListBox from the "Date & Time" dialog is
currently what gives the dialog width, but this
is an unusual approach that other dialogs from
Settings don't use.

To fix this, use the content-width property from
AdwDialog. The dialog width is now almost the same
as before this change.
2024-05-06 12:15:12 +00:00
Automeris naranja
e66d4adb01 date-time: Use AdwActionRow in the Month row from the "Date & Time" dialog
The Month row is a CcListRow which displays the selected month
using the secondary-label property from CcListRow. However, the
month appears dimmed (because secondary-label uses the .dim-label
style class) and the Month row is supposed to mimick AdwComboRow,
which doesn't dim the selected item. To fix this, use an
AdwActionRow instead.
2024-05-06 12:15:12 +00:00
Automeris naranja
cf81656e55 datetime-page: Use AdwPreferencesPage/Group in the "Date & Time" dialog
This simplifies the .ui code a bit and keep consistency
with other dialogs.
2024-05-06 12:15:12 +00:00
Matthijs Velsink
1c0815490a datetime: Don't unconditionally use self in async cbs
If the page is closed before the async call finishes, the page is
unreffed and gets disposed, resulting in a crash when the finish handler
is called, as it may try to access pointers of self that got set to NULL
in the disposer.

To prevent this, use the source object directly, which is guaranteed to
be alive during the call and callback. If self gets disposed during the
async call, we'll get a warning that the cancellable was cancelled
instead of a crash.

Fixes #3045
2024-05-06 10:45:41 +00:00
Automeris naranja
89c58252ed format-chooser: Add tooltip to the preview button
Doing so, this button will also be a11y-labelled.
2024-04-29 20:59:10 -03:00
Sam Hewitt
87569018c7 Drop orphaned symbolic assets 2024-04-29 11:07:20 -02:30
Sam Hewitt
1e56c48f33 Unify elements in the icon assets to shrink their file size 2024-04-29 11:01:18 -02:30
Sam Hewitt
075ac51e29 Fix rendering export error on new icon assets 2024-04-29 11:01:18 -02:30
Sam Hewitt
6df1f3fee9 users: Replace reference to old icon 2024-04-29 11:01:18 -02:30
Sam Hewitt
60e3f591f9 a11y: Reorganize icon assets
- add sources for the subpanel icons to the symbolics source sheet
2024-04-29 11:01:18 -02:30
Sam Hewitt
b511f9a767 system: Reorganized symbolic icon assets
- moved all symbolic icon assets into a top-level folder for the panel
- added new asset for secure shell panel
- updated the gresource
2024-04-29 11:01:18 -02:30
Automeris naranja
9e9e669385 format-chooser: Use AdwStatusPage when a search returns no results 2024-04-29 12:20:25 +00:00
Automeris naranja
2f394dfda2 format-chooser: Replace "view-layout-symbolic" with "view-reveal-symbolic"
When the window is small, the rows show a broken icon in the reveal
button, because the "view-layout-symbolic" icon can't be found.
To fix this, replace such icon with "view-reveal-symbolic", as per
latest mockups[1].

[1] 3a5fe844dd
2024-04-29 09:48:58 +00:00
Adrian Vovk
87f79e6d03 password-dialog: Don't map Esc to window.close
AdwDialog handles Escape for us, and the dialog isn't a window so
`window.close` isn't necessarily what we want. It's not actually a bug
right now (I guess AdwDialog prevents the Escape key event from bubbling
up), but in the future if something changes, then emitting window.close
might just close the entire GNOME Settings window
2024-04-29 08:53:24 +00:00
Sebastien Bacher
17f472fb2a sharing, system: ssh is under the system panel now, update the keywords
remove also the remove desktop items from sharing
2024-04-26 13:16:04 +00: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
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
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
Automeris naranja
d5da431ba5 fingerprint-dialog: Minor tweaks to the "back" button
- Add a tooltip
- Remove the a11y label because Orca also reads tooltips
- Remove the .image-button style class as it's automatically
added if a GtkButton has an icon
- Remove the use-underline property as it's pointless in
a button without a label
2024-04-13 05:55:51 +00:00
Automeris naranja
d9380e9683 desktop-sharing-page: Add missing period in the page description
HIG says that "Text generally shouldn’t end with a period.
This applies [...] text that is written as a complete sentence",
but the page description text isn't written as a complete sentence,
so the guideline isn't applicable in this case.

https://developer.gnome.org/hig/guidelines/writing-style.html
2024-04-13 00:22:58 -03:00
Automeris naranja
788c3bacfb secure-shell-page: Port to AdwDialog 2024-04-09 09:18:31 +00:00
Xiaoguang Wang
535404bba2 datetime: Avoid emitting the time-changed signal
When setting the widget value, don’t emit the time-changed signal.

Fixes #2943
2024-04-09 09:07:11 +00:00
Automeris naranja
2bebe77422 remote-desktop: Use "copied to the clipboard" in AdwToasts
When using the copy buttons from Desktop Sharing/Remote Login pages,
the toasts don't show that the values were copied to the clipboard,
unlike in System > Secure Shell/About > System Details, for example.
So, fix this inconsistency.
2024-04-09 09:05:16 +00:00
Automeris naranja
a5aa2baa25 enterprise-login-dialog: Prevent buttons from being sensitive incorrectly
"Add" and "Enroll" buttons can still be sensitive without
calling main_page_validate() and enroll_page_validate()
respectively. Add an assertion check in both cases to
prevent these buttons being sensitive incorrectly.

Co-authored-by: Matthijs Velsink <mvelsink@gnome.org>
2024-04-08 13:54:04 +00:00
Ray Strode
ae2df95306 system, password-utils: Try to find word list harder
There are variety of word lists available in /usr/share/dict,
let's try more than just one.

Closes:
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2957
2024-04-08 10:57:20 +02:00
Automeris naranja
2c5f3169b3 region: Use the secondary-label property in all CcListRows
"Language" and "Format" rows show their value as a subtitle,
but this is inconsistent with Settings design pattern in which
the value label is shown at the right, so fix this inconsistency.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2914
2024-04-06 14:34:56 +00:00
Automeris naranja
7a7939d4ad date-time: Port dialogs to AdwDialog
Port the "Time Zone" and "Date & Time" dialogs to
AdwDialog.
2024-04-03 08:24:51 +00:00