[gnome-documents/gnome-3-12] documents: use scale factor to create collection icons



commit 245f6f83eb981750d939e6ba8b414e0e21959f8e
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Aug 6 15:45:46 2013 +0200

    documents: use scale factor to create collection icons

 src/documents.js |    4 +++-
 src/utils.js     |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 1381991..c0f9e3f 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -196,7 +196,9 @@ const CollectionIconWatcher = new Lang.Class({
                     pixbufs.push(doc.origPixbuf);
             });
 
-        this._pixbuf = GdPrivate.create_collection_icon(Utils.getIconSize(), pixbufs);
+        this._pixbuf = GdPrivate.create_collection_icon(
+            Utils.getIconSize() * Application.application.getScaleFactor(),
+            pixbufs);
         this._emitRefresh();
     },
 
diff --git a/src/utils.js b/src/utils.js
index d5ca532..7a358ed 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -78,7 +78,9 @@ function iconFromRdfType(type) {
     else if (type.indexOf('nfo#Presentation') != -1)
         iconName = 'x-office-presentation';
     else if (type.indexOf('nfo#DataContainer') != -1)
-        return GdPrivate.create_collection_icon(getIconSize(), []);
+        return GdPrivate.create_collection_icon(
+            getIconSize() * Application.application.getScaleFactor(),
+            []);
     else
         iconName = 'x-office-document';
 


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