summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2018-04-09 09:37:46 +0200
committerFelipe Borges <felipeborges@gnome.org>2018-07-30 13:29:43 +0200
commit6a7fcaf82b3dc913313f328501ec085b5bfb5d0f (patch)
treea68f892fc46644409bc5bc2388c1f265a03bd762
parent0441acd191fb89b40d30484e2966ddd48a196f12 (diff)
downloadgnome-initial-setup-6a7fcaf82b3dc913313f328501ec085b5bfb5d0f.tar.gz
account: Make face images bigger
The new set of face images doesn't contain the same number of images, so let's change parameters of avatar chooser in the same way as it was done in gnome-control-center. Now we present 72x72 faces in a 4x4 grid. https://bugzilla.gnome.org/show_bug.cgi?id=795086
-rw-r--r--gnome-initial-setup/pages/account/um-photo-dialog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnome-initial-setup/pages/account/um-photo-dialog.c b/gnome-initial-setup/pages/account/um-photo-dialog.c
index 0769209..ac89d30 100644
--- a/gnome-initial-setup/pages/account/um-photo-dialog.c
+++ b/gnome-initial-setup/pages/account/um-photo-dialog.c
@@ -37,7 +37,8 @@
#include "um-photo-dialog.h"
#include "um-utils.h"
-#define ROW_SPAN 6
+#define ROW_SPAN 5
+#define AVATAR_PIXEL_SIZE 72
struct _UmPhotoDialog {
GtkWidget *photo_popup;
@@ -152,6 +153,7 @@ menu_item_for_filename (UmPhotoDialog *um,
icon = g_file_icon_new (file);
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);
+ gtk_image_set_pixel_size (GTK_IMAGE (image), AVATAR_PIXEL_SIZE);
g_object_unref (icon);
menuitem = gtk_menu_item_new ();