Commit graph

10 commits

Author SHA1 Message Date
Automeris naranja
aaa726a662 users-page: Add arrow icon to other users rows
The other users rows open a subpage, but they
don't show an arrow icon to indicate that.
Fix such issue by adding an arrow icon.
2024-01-22 09:04:29 +00:00
Jeremy Bícha
21b5a64786 users: Close language dialog when Select is clicked
Closes: #2841
2024-01-13 10:19:17 +00:00
Automeris naranja
4062329119 users: Use AdwSwitchRow in the remove user dialog
Also, add a mnemonic.
2024-01-10 09:58:38 +00:00
Julian Sparber
d0062954fa user: Ensure that the user avatar is regenerated when needed
If a user uses a a generated avatar we need to regenerated it every time
the full name changes.
2024-01-09 15:47:17 +00:00
Julian Sparber
7b0df415c3 user: Add remove button to user avatar 2024-01-09 15:47:17 +00:00
Julian Sparber
ab7416020b user: Store source of user avatar inside PNG
We can store whether we generated the user avatar inside the PNG
itself. Unfortunately  this won't work for old installations but in future
we can use the metadata introduced by this commit.
2024-01-09 15:47:17 +00:00
Julian Sparber
a732b6a110 user: Use AdwAvatar to generate default user icon
This drops the old code used to generated the fallback and changes
`GdkPixbuf` to `GdkTexture` where it's possible or needed.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1663
2024-01-09 15:47:17 +00:00
Julian Sparber
d1542fd663 user: Remove recent used list of avatar
Recent used list of avatars form the popover wasn't populated with any avatars
other then the generated one, so it's only used to remove a set avatar.
In a future commit a remove button is added therefore this section will lose
all of it's purpose.
2024-01-09 15:47:17 +00:00
Julian Sparber
6f53522d90 user: Remove old craft work from CcAvatarChooser
The object had a lot of old code and was not following the typical
GObject boilerplate.
- This moves code to initialize CcAvatarChooser to *_init()
- Removes unused code
- This removes `transient_for` property since it's not needed, this
  is probably a remanence of the Chooser being a Dialog instead of a
  Popover
2024-01-09 15:47:17 +00:00
Felipe Borges
d52ec68f8d system: Add "Users" panel
This moves the UserAccounts panel to a page in the System panel.

This simplifies a lot of the existing code in the UserAccounts panel.

I did minimal changes to the sub dialogs so that those can be touched
in following changes, making it easier to review this one alone.

The main panel widget is now CcUsersPage, and is an AdwNavigationView
widget that has a default "current_user_page" page. Each page is a
CcUserPage (careful with the one-character difference between these
two classes).

Each CcUserPage has an associated ActUser object.
2024-01-08 13:59:26 +01:00