Robert Ancell
100d3684f2
user-accounts: Connect signals with g_signal_connect_object in swapped form
2020-03-30 16:18:50 +13:00
Ondrej Holy
f5f67823db
user-accounts: Present the default avatar in the avatar popover
...
Currently, it is not possible to unset a custom avatar, respective it
is not possible to set the default one. Let's present the default
avatar in the avatar popover as suggested in the mockup:
https://wiki.gnome.org/Design/OS/AvatarChooser
Fixes : GNOME/gnome-control-center#62
2019-05-16 14:50:45 +00:00
Ondrej Holy
65a8c15467
user-accounts: Remove a redundant parameter
...
The `round_image()` function has the `icon_size` parameter, which is not
used by that function, because the size is determined from a pixbuf size.
Let's remove that redundant `icon_size` parameter.
2019-05-16 14:50:45 +00:00
Andrea Azzarone
f42f39970d
user-accounts: Fix memory corruption in the avatar popup
...
Use g_object_set_data_full and g_steal_pointer to ensure the validity of the
"filename" association.
Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/399
2019-03-04 11:06:54 +00:00
Ondrej Holy
addc65a6fd
user-accounts: Allow bigger custom avatars
...
Default set of avatars uses 512x512 currently. However, custom avatars
from file, or webcam are always scaled down to 96x96. Let's increase this
also to 512x512. This change should be safe, because theoretical maximal
file size is 1 MB, which is equal to accountsservice limit.
https://bugzilla.gnome.org/show_bug.cgi?id=792243
2019-03-02 14:47:52 +00:00
Felipe Borges
02c288ab6f
user-accounts: Generate a default avatar for new users
...
When a user is created, we generate an avatar with their initials.
See https://gitlab.gnome.org/GNOME/Initiatives/issues/6
2019-02-06 11:53:56 +00:00
Felipe Borges
d263ce1549
user-accounts: Round all user images
...
This is part of the effort in [0] to standardize the way we display
user images accross GNOME. Images are now going to be rounded and
borderless.
See https://gitlab.gnome.org/GNOME/Initiatives/issues/6
2019-02-06 11:53:56 +00:00
Robert Ancell
ffa54acdb9
user-accounts: Move non-shared function
...
The set_user_icon_data function is only use in CcAvatarChooser
2018-11-14 10:10:15 +13:00
Robert Ancell
eb7bbae2cd
user-accounts: Rename UmPhotoDialog to CcAvatarChooser
...
Um is a naming hangover from before this was part of g-c-c.
2018-11-14 10:06:15 +13:00