user-accounts: Add back legacy image faces

Commit ffe5aac8 introduced new set of face images and removed the old
ones. Consequently, generic avatar is shown for people after update.
Add back legacy images, so people won't lose their current images on
update. Add them into the subfolder and create symlinks for them,
so it can be simply filtered out from the chooser widget, because just
the new images should be shown.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/5
This commit is contained in:
Ondrej Holy 2018-02-26 17:41:07 +01:00
parent ff0ec34161
commit 6e4d75eaaf
25 changed files with 43 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View file

@ -35,11 +35,53 @@ image_data = files(
'data/faces/tree.jpg',
)
legacy_image_data = files(
'data/faces/legacy/astronaut.jpg',
'data/faces/legacy/baseball.png',
'data/faces/legacy/butterfly.png',
'data/faces/legacy/cat-eye.jpg',
'data/faces/legacy/chess.jpg',
'data/faces/legacy/coffee.jpg',
'data/faces/legacy/dice.jpg',
'data/faces/legacy/energy-arc.jpg',
'data/faces/legacy/fish.jpg',
'data/faces/legacy/flake.jpg',
'data/faces/legacy/flower.jpg',
'data/faces/legacy/grapes.jpg',
'data/faces/legacy/guitar.jpg',
'data/faces/legacy/launch.jpg',
'data/faces/legacy/leaf.jpg',
'data/faces/legacy/lightning.jpg',
'data/faces/legacy/penguin.jpg',
'data/faces/legacy/puppy.jpg',
'data/faces/legacy/sky.jpg',
'data/faces/legacy/soccerball.png',
'data/faces/legacy/sunflower.jpg',
'data/faces/legacy/sunset.jpg',
'data/faces/legacy/tennis-ball.png',
'data/faces/legacy/yellow-rose.jpg',
)
image_dir = join_paths(control_center_datadir, 'pixmaps', 'faces')
install_data(
image_data,
install_dir: join_paths(control_center_datadir, 'pixmaps', 'faces')
install_dir: image_dir
)
legacy_image_dir = join_paths(image_dir, 'legacy')
install_data(
legacy_image_data,
install_dir: legacy_image_dir
)
# create symlinks for legacy images to not break current images for people
meson.add_install_script('sh', '-c',
'for f in $DESTDIR@0@/*; do
ln -s legacy/$(basename $f) $DESTDIR@1@/$(basename $f);
done'.format(legacy_image_dir, image_dir))
polkit = 'org.gnome.controlcenter.@0@.policy'.format(cappletname)
i18n.merge_file(