Commit graph

8254 commits

Author SHA1 Message Date
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
Matthijs Velsink
fdadeb9129 background: Track current active background better
The checkmark indicating the active background based on GtkFlowBox
selection does not work when changing the selection with the arrow keys.
Moreover, it is not set when the panel opens.

We fix this by sending the active CcBackgroundItem to the chooser, so
that it can add an "active-item" CSS class to the true active item.

Fixes #1756 #2505
2024-02-16 09:37:14 +00:00
Matthijs Velsink
01ae6f8908 background: Do not manually track items flags
Manually tracking which properties are set on a CcBackgroundItem is only
properly done in the background XML loader. Doing this manually is
error-prone and should instead be done inside the relevant property
setters. That would avoid forgetting to set some of the flags, which is
especially relevant for comparing two background items.

This adds automatic setting of background item flags to fix this.
2024-02-16 09:37:14 +00:00
Matthijs Velsink
9c9c3430f2 background: Use properties array for background items
Stop using g_object_class_install_property() for each property, but add
an entire array at once with g_object_class_install_properties().
2024-02-16 09:37:14 +00:00
Matthijs Velsink
33b9b46432 background: Remove more unused colored bg code
When colored backgrounds were a thing, these where set with style
G_DESKTOP_BACKGROUND_STYLE_NONE. Presumably, changes to these
backgrounds were stored in a local XML file.

Since the colored backgrounds were removed, let's also remove the code
tracking these colored background changes.
2024-02-16 09:37:14 +00:00
Philip Withnall
ff29f1c95e build: Fix use of deprecated libmalcontent symbols
These symbols were soft-renamed in libmalcontent 0.5.0 (released in
February 2020), and we already depend on 0.7.0.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-02-16 09:23:54 +00:00
Automeris naranja
72abffe24e sharing: Minor tweaks to dialogs size
After the port to AdwPreferencesPage and the
main switch being moved out from the headerbar,
the content of the sharing dialogs got a bit hidden,
which requires more scrolling.

Fix such issue by removing the height-request
property, so the window height can follow the content
height. Do the same for the Media Sharing dialog
to keep consistency. Also, use the same window width
in both dialogs (to also keep consistency).
2024-02-14 12:32:40 +00:00
Matthijs Velsink
959f8afde8 sharing: Clean leftover "Remote Login" code
Commit c0c357c3 (!2211) moved the "Remote Login" code to the System
panel. There are some leftover bits of code in the sharing panel though.

This cleans that up.

Closes #2895
2024-02-13 13:06:38 +00:00
Andy Holmes
0e7a9d91e0 online-accounts: use subtitles for ambiguous providers
Add better titles for providers with names like "IMAP and SMTP",
retaining the GOA-provided string as the row subtitle.
2024-02-12 19:04:00 +01:00
Andy Holmes
3d2e3400b0 online-accounts: sort providers statically
Sorting providers and accounts by features flags makes it difficult to
thme how we like, so hard-code the sorting order based on the
non-localized provider name.
2024-02-12 19:04:00 +01:00
Andy Holmes
6405c255aa online-accounts: avoid a NULL-pointer dereference 2024-02-12 17:58:35 +00:00