[gnome-control-center] user-accounts: Make face images bigger



commit 0f893b7cffd20bc5f46f8f9b3a6efdeefe164533
Author: Felipe Borges <felipeborges gnome org>
Date:   Fri Jan 5 16:19:42 2018 +0100

    user-accounts: Make face images bigger
    
    Now we present 72x72 faces in a 4x4 grid.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792243

 panels/user-accounts/um-photo-dialog.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-photo-dialog.c b/panels/user-accounts/um-photo-dialog.c
index 50171f6..600c583 100644
--- a/panels/user-accounts/um-photo-dialog.c
+++ b/panels/user-accounts/um-photo-dialog.c
@@ -39,7 +39,8 @@
 #include "cc-crop-area.h"
 #include "um-utils.h"
 
-#define ROW_SPAN 6
+#define ROW_SPAN 5
+#define AVATAR_PIXEL_SIZE 72
 
 struct _UmPhotoDialog {
         GtkWidget *photo_popup;
@@ -361,6 +362,7 @@ menu_item_for_filename (UmPhotoDialog *um,
         icon = g_file_icon_new (file);
         g_object_unref (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 ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]