Commit graph

8214 commits

Author SHA1 Message Date
Automeris naranja
4b56c8b666 keyboard-shortcut-dialog: Fix typo in function name 2024-03-01 09:45:42 +00:00
Automeris naranja
e261d51617 network: Use "secondary-label" property in the Proxy row
The Proxy row shows its value as subtitle, which is
inconsistent with other rows where the subtitle describes
the row title/what the row is.

Show the proxy value as a CcListRow secondary-label to fix
such issue.

Reference:
cfb7cae4a9
2024-02-29 13:53:34 +00:00
Automeris naranja
0aeb0b55a7 general: Add translator comments about the "Search" term
Clarify in which occasions this term should be
phrased as a verb or as a noun.

Partially fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2903
2024-02-29 13:48:20 +00:00
Automeris naranja
1978468396 general: Remove a11y label from some search entries
These search entries have placeholder texts,
which are also read by Orca. Therefore, using
an a11y label is redundant.

Partially fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2903
2024-02-29 13:48:20 +00:00
Automeris naranja
ec30d48a12 wacom: Port "Keep Aspect Ratio" row to AdwSwitchRow 2024-02-29 10:18:47 +00:00
Automeris naranja
bd93cd2292 search: Port "App Search" row to AdwSwitchRow 2024-02-29 10:18:47 +00:00
Peter Hutterer
b45550770e wacom: Fix a memleak on error
In the case of an error we allocated the object but returned NULL
without freeing it.
2024-02-29 09:44:22 +00:00
Peter Hutterer
2aa192f8cf wacom: Change a boolean to the enum value it actually is
Happens to be a value of zero so FALSE works, but only because this is C
and nothing is true and everything is permitted.
2024-02-29 09:44:22 +00:00
Ondrej Holy
316cd92906 system, users: Handle hostname errors
Currently, the generic "Failed to log into domain" error is shown when
joining domain with invalid hostname. It is hard for user to guess what
is going on. Let's fail with "That hostname didn’t work" instead.

Related: https://gitlab.freedesktop.org/realmd/realmd/-/merge_requests/39
2024-02-29 07:51:42 +00:00
Ondrej Holy
c3e71abec0 system, users: Cancel previous cc_realm_manager_discover calls
Currently, the previous cc_realm_manager_discover calls are not cancelled
when validating domain field. This might lead to the situation when valid
domain might be mislabeled as invalid and vice versa. Let's simply cancel
the cancellable to avoid this situation.
2024-02-29 07:51:42 +00:00
Ondrej Holy
2a396add01 system, users: Fix parameter type for realm_join_as_owner callback
The `source_object` parameter for the callback functions called from
the `realm_join_as_user` and `real_join_as_admin` resp. `realm_join_as_owner`
functions is not `CC_REALM_OBJECT` type as one would expect, but
`CC_REALM_KERBEROS_MEMBERSHIP` type. Let's modify the code to ensure that
it is `CC_REALM_OBJECT` type.
2024-02-29 07:51:42 +00:00
Ondrej Holy
a372061f8a system, users: Finish the Enterprise Login dialog implementation
The implementation is based on the cc-add-user-dialog.c codes, but it is
not a pure copy&paste. It has to be changed to fit the skeleton and reflect
changes from the mockup. I've also tried to simplify the code where possible.
It also fixes some memory leaks.
2024-02-29 07:51:42 +00:00
Ondrej Holy
39171394db system, users: Fix coding style as per guidelines 2024-02-29 07:51:42 +00:00
Felipe Borges
4f482d9693 system, users: Add skeleton for the Enterprise Login dialog
Following the mockups at
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/users/add-enterprise-login.png
2024-02-29 07:51:42 +00:00
Felipe Borges
4a9e63337d system, users: Add CcEntryFeedback
A simple widget to display feedback to user-accounts related entries.

This widget is to be used for when we need to show an icon next to
a feedback message such as the ones at
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/users/add-enterprise-login.png
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/users/add-user.png
2024-02-29 07:51:42 +00:00
Felipe Borges
91f016b0c7 system: Re-add the System subpage desktop files
Additionally we add the X-Settings-SystemSettings category and
adjust the Exec keys to be "system $panel_name"
2024-02-27 16:04:00 +00:00
Automeris naranja
31927efeac wifi-connection-row: Minor tweaks
- Make all buttons as suffix widgets,
which makes unnecessary to wrap them in
a GtkBox that is set as a suffix widget

- Don't set a margin end to the Wi-Fi
icon[1]

- Remove halign from the buttons, because
it isn't necessary

- Remove halign from the buttons, as it
isn't necessary because halign works only
if hexpand is set to TRUE

- Add margin end to the spinner so it
doesn't appear misaligned with the other
widgets at the end of the row

[1] In latest mockups, the margin between
the Wi-Fi icon and network name is also
shorter: cfb7cae4a9
2024-02-26 16:02:23 +00:00
Automeris naranja
95f36e2d71 power: Remove row-activated callback for power profile rows
It isn't necessary anymore now that power profile
rows are AdwActionRows[1].

[1] f7b41b23f5
2024-02-26 15:56:41 +00:00
Automeris naranja
9b34a5092b printers: Don't use .image-button in the "Search" button
The .image-button style class is automatically
added if a GtkButton has an icon:
https://docs.gtk.org/gtk4/class.Button.html
2024-02-26 14:53:20 +00:00
Automeris naranja
d5ff5cf33e new-printer-dialog: Tweak the "Back" button
- Use the icon-name property of GtkButton
instead of embedding a GtkImage
- Replace the a11y label with a tooltip
2024-02-26 14:53:20 +00:00
Felipe Borges
c6496e7180 system: Update action-target names due to the latest changes
See commit bb242fc58c
2024-02-22 11:58:11 +01:00
Felipe Borges
9c94d55505 system: Rename subpage tags to their expected cmdline arguments 2024-02-22 09:57:01 +00:00
Felipe Borges
bb242fc58c system: Handle "gnome-control-center system subpage" cmdline arguments
This allows us to open subpages of the "System" panel. The arguments/
parameters are expected to match the panel's subpage tags (as in
AdwNavigationPage.tag).

With this, a future change could reintroduce desktop files for the
subpages, and just change the Exec line to accomodate the new format.
2024-02-22 09:57:01 +00:00
Automeris naranja
7eb88ce5ff notifications: Port app rows to CcListRow 2024-02-22 09:48:09 +00:00
Automeris naranja
f513406f40 sound: Port some rows to CcListRow
Port the following rows to CcListRow:

- Alert Sound
- Volume Levels
2024-02-22 09:48:09 +00:00
Automeris naranja
fed77a9511 datetime-page: Port some rows to CcListRow
Port the following rows to CcListRow:

- Date & Time
- Time Zone
2024-02-22 09:48:09 +00:00
Bharat
1856f1f7ca system, about: Add spacing between graphics rows
Graphics labels under system details did not have enough padding
between them similar to other labels in the panel

Add a default spacing of 10 to children rows of gtk_box that sets the
graphic rows dynamically to fix the issue

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2916
2024-02-21 14:37:07 +00:00
Matthijs Velsink
1206bb477f ua-hearing-page: Add context to "Sound" string
Commit 90a131a2 (!2164) split off the translation of the sound panel
name "Sound". However, "Sound" might need a unique translation in
this case.

So, add a context string to allow for that.

Closes #2915
2024-02-21 14:47:30 +01:00
Automeris naranja
a02b47dadf night-light-page: Move page description to AdwPreferencesPage
The page description is inside an AdwPreferencesGroup,
which is wrong.
2024-02-21 08:34:38 +00:00
Automeris naranja
af55df0194 network-wifi: Remove "activatable" property from some CcListRows
The CcListRow template already sets the row
as activatable[1].

[1] https://gitlab.gnome.org/GNOME/gnome-control-center/-/blob/gnome-45/panels/common/cc-list-row.ui?ref_type=heads#L4
2024-02-20 19:04:26 -03:00
Automeris naranja
2b2af85ead power: Port "Automatic Suspend" row to CCListRow
This helps to clean the code a bit.
2024-02-20 10:05:15 +00:00
Felipe Borges
6a09703e6d system: Add "update-symbolic" icon to Software Update row
See https://gitlab.gnome.org/Teams/Design/settings-mockups/-/issues/67
2024-02-20 10:18:52 +01:00
Felipe Borges
ff3e2afb80 system: Move "Software Updates" row from About page to toplevel
See https://gitlab.gnome.org/Teams/Design/settings-mockups/-/issues/67
2024-02-20 10:18:52 +01:00
Andy Holmes
bf4be8c09e online-accounts: update strings to match GOA GNOME 46 design
Update the "Email" and "Calendars, Contacts, Files" to match the
GOA design for GNOME 46, as "E-mail" and "Calendar, Contacts and
Files", respectively.

See: Teams/Design/settings-mockups!68
2024-02-20 08:59:34 +00:00
Automeris naranja
5785f4cc7d power: Don't use GtkSizeGroup
This isn't being used in other panels; it also
increases the height of all rows when the
window is narrow, making the UI to look odd.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1674
2024-02-20 08:51:52 +00:00
Automeris naranja
3f7d6381da apps: Remove "activatable" property from "Default Apps" row
The CcListRow template already sets the row
as activatable[1].

[1] https://gitlab.gnome.org/GNOME/gnome-control-center/-/blob/gnome-45/panels/common/cc-list-row.ui?ref_type=heads#L4
2024-02-20 08:37:34 +00:00
Automeris naranja
c403408fc2 apps: Avoid deleting handlers by clicking on the rows
In the "File & Link Associations" dialog, a handler
can be removed by clicking on the entire row. However,
this can lead to an accidental handler remove; also,
this behavior isn't present in other rows (from other
panels) that have a remove button.
2024-02-20 08:36:38 +00:00
Automeris naranja
d997c6e0fa general: Remove "activatable" property from some CcListRows
The CcListRow template already sets the row
as activatable[1].

[1] https://gitlab.gnome.org/GNOME/gnome-control-center/-/blob/gnome-45/panels/common/cc-list-row.ui?ref_type=heads#L4
2024-02-20 07:32:37 +00:00
Automeris naranja
34fd45a16f about-page: Port "System Details" row to CcListRow 2024-02-20 06:34:09 +00:00
Automeris naranja
9546942372 online-account: Add arrows to all rows
Reference:
86315f32ad
2024-02-19 16:13:37 +00:00
Peter Hutterer
c348239e92 wacom: Pass the GsdDevice through to the calibrator
The calibrator gets a GdkDevice from the GtkGesture but that device is
the "Logical device for $TABLET", not the actual device. So all our
clicks are discarded as coming from the wrong device.

Fix this by passing the GsdDevice through and comparing against that.

Closes #1871
2024-02-19 12:47:09 +01:00
Peter Hutterer
430585eed0 wacom: Fix a few indentation/whitespace issues 2024-02-19 12:46:06 +01:00
Automeris naranja
376fda9726 apps: Prevent the sandbox_banner title from overlapping CCListRowInfoButton
The sandbox_banner title shows "<app_name> is
not sandboxed". However, if the app name is too
long, the banner text will overlap the
CCListRowInfoButton that is inside the banner.

To fix this, remove the app name from the banner
and only show "App is not sandboxed".

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2846
2024-02-19 10:00:12 +00:00
Andy Holmes
b0776a2ecd online-accounts: define a GType macro for account rows 2024-02-18 01:01:37 +00:00
Felipe Borges
8956546380 apps: Add translator comments to the "Search" permission row
Fixes #2903
2024-02-16 10:08:51 +00:00
Felipe Borges
1bb5158a44 apps: Reuse "Search" row strings in the "no_search" row
When a Search Provider can be toggled, we show an AdwSwitchRow but
when it can't (disabled) we show a normal row with the "Disable"
suffix. This way we end up with two rows that are very similar and
have the same title and subtitle.

Let's bind the title and subtitles of the "no_search" row to the
"search" row as they are always expected to be identical.

See #2903
2024-02-16 10:08:51 +00:00
Felipe Borges
f54558d58e wifi: Add translator comment to "Saved Networks" dialog 2024-02-16 09:50:20 +00:00
shruti2522
e289a8b3b6 wifi: pluralize string using ngettext 2024-02-16 09:50:20 +00:00
Matthijs Velsink
71f8f31d92 background: Refactor boolean logic in CcBackgroundItem
Fix some overcomplicated logic.
2024-02-16 09:37:14 +00:00
Matthijs Velsink
e5cfb97dd8 background: Block callback while changing settings
The set_background() function changes settings, and even though the
underlying GSettings are set to `delay-apply`, every change still fires
a "changed" callback. This results in many intermediate and
unnecessary calls to on_settings_changed().

Fix this by blocking that callback during the set_background() calls,
and manually doing a single on_settings_changed().
2024-02-16 09:37:14 +00:00