[gnome-photos] base-item: Don't hard code the size, use photos_utils_get_icon_size



commit ff858a16e8e3f027e75b7a2c32abad0c78f8d28b
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Nov 20 00:39:52 2012 +0100

    base-item: Don't hard code the size, use photos_utils_get_icon_size

 src/photos-base-item.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 33f53e4..19463f4 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -424,6 +424,7 @@ photos_base_item_update_icon_from_type (PhotosBaseItem *self)
   GIcon *icon = NULL;
   GtkIconInfo *info;
   GtkIconTheme *theme;
+  gint icon_size;
 
   if (priv->mime_type != NULL)
     icon = g_content_type_get_icon (priv->mime_type);
@@ -431,9 +432,10 @@ photos_base_item_update_icon_from_type (PhotosBaseItem *self)
   /* TODO: Get icon from RDF type */
 
   theme = gtk_icon_theme_get_default ();
+  icon_size = photos_utils_get_icon_size ();
   info = gtk_icon_theme_lookup_by_gicon (theme,
                                          icon,
-                                         128,
+                                         icon_size,
                                          GTK_ICON_LOOKUP_FORCE_SIZE | GTK_ICON_LOOKUP_GENERIC_FALLBACK);
   if (info != NULL)
     {



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