Commit graph

8544 commits

Author SHA1 Message Date
Andy Holmes
a3e73896cc online-accounts: don't show account details when finished
When a new account is successfully added, simply close the dialog,
revealing it to be in the list of accounts, rather than showing
the account details.

closes #3067
2024-05-30 07:41:02 +00:00
Automeris naranja
42503c8ced network-wifi: Use header capitalization in the "Security Type" row
As per HIG guidelines:
https://developer.gnome.org/hig/guidelines/writing-style.html#header-capitalization
2024-05-29 14:52:32 +00:00
Automeris naranja
8d9f40b40a network-wifi: Use property rows to show Wi-Fi Hotspot information
Doing, so this will improve consistency as other places in
Settings use property rows [1]. This also ensures that the
network name doesn't get ellipsized if it's long when using
a narrow window width.

[1]
- feb2c8c514
- 5cd300c65a
- d5c66d25a0
2024-05-29 14:52:32 +00:00
Automeris naranja
27aae933cd usage: Replace buttons with AdwButtonRows
https://developer.gnome.org/hig/patterns/containers/boxed-lists.html#adding-buttons
2024-05-29 14:51:49 +00:00
Automeris naranja
44985cf097 apps: Fix search entry being smaller again
Now that the search entry was put in a GtkSearchBar in [1],
the search entry got a bit smaller, breaking a little what
[2] fixed.

To fix this, remove the "maximum-size" and the
"tightening-threshold" from the AdwClamp that contains the
search entry. This will also make the search entry size to
be consistent with the one from cc-keyboard-shortcut-dialog,
which is also a top child of AdwToolbarView.

[1] cd97e4f518
[2] ec01b9d629
2024-05-29 14:48:11 +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
Automeris naranja
932bbc970f pp-details-dialog: Port to AdwButtonRow
Also:
- Remove "select_from_database_button" and "install_ppd_button"
object IDs, as they are unused by the C code.
- Remove the default-height from the window to avoid showing an
unnecessary scrollbar now that the AdwButtonRows takes more vertical
space
2024-05-28 20:11:28 +00:00
Automeris naranja
d3765f0862 input-list-box: Port "Add Input Source..." to AdwButtonRow
Also, remove the ellipsis, since it isn't necessary when a
button row adds something to a list box.

https://developer.gnome.org/hig/patterns/containers/boxed-lists.html#adding-buttons
2024-05-28 20:00:10 +00:00
Felipe Borges
cb85480a02 search-locations: Move initialization to object _init 2024-05-28 19:54:49 +00:00
Felipe Borges
7177c0e18b search: Rename CcSearchLocationsDialog to CcSearchLocationsPage 2024-05-28 19:54:49 +00:00
Felipe Borges
ce0c071d6b search: Port SearchLocationsDialog into a panel subpage
The goal here is to avoid the dialog and follow a pattern of subpages we
have in other panels.

This dialog is often launched from Nautilus over the
`gnome-control-center search locations` launching argument, making it
even worse as a dialog.
2024-05-28 19:54:49 +00:00
Automeris naranja
c85bd59c56 search-locations-dialog: Port to AdwDialog 2024-05-28 19:54:49 +00:00
Automeris naranja
9b04a0e87c sharing: Use AdwButtonRow in the Media Sharing dialog
https://developer.gnome.org/hig/patterns/containers/boxed-lists.html#adding-buttons
2024-05-28 16:41:32 -03: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
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
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
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
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
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
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
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
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
Automeris naranja
e2f68721a5 usage: Port "Delete all the temporary files" to AdwAlertDialog
Also:
- Move the dialog to the .ui file, as this dialog is UI-related
- Don't destroy/force close the dialog, as it will be closed
automatically after the responses are triggered
2024-05-18 11:04:58 +02:00
Automeris naranja
47110c25f1 usage: Port "Empty all items from Trash?" to AdwAlertDialog
Also:
- Move the dialog to the .ui file, as this dialog is UI-related
- Don't destroy/force close the dialog, as it will be closed
automatically after the responses are triggered
2024-05-18 11:04:58 +02:00
Automeris naranja
51f8742df8 usage: Port "Clear File History?" to AdwAlertDialog
Also:
- Move the dialog to the .ui file, as this dialog is UI-related
- Don't destroy/force close the dialog, as it will be closed
automatically after the responses are triggered
2024-05-18 11:04:58 +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
3f273bee0b privacy: Use CcPanel.navigation rather than own navigation-view 2024-05-17 09:18:00 +00:00