[gnome-documents] Revert "documents: use scale factor to create collection icons"



commit 79729f5c554fd02f1d5c42297d856d90c9b82b38
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Aug 7 05:24:29 2013 +0200

    Revert "documents: use scale factor to create collection icons"
    
    Still depends on unreleased code in GJS.
    
    This reverts commit 6fd40bfd3c11d7dbdcea962fee1ce174f639bde1.

 src/documents.js |    4 +---
 src/utils.js     |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 258bc18..868a123 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -195,9 +195,7 @@ const CollectionIconWatcher = new Lang.Class({
                 pixbufs.push(doc.origPixbuf);
             });
 
-        this._pixbuf = GdPrivate.create_collection_icon(
-            Utils.getIconSize() * Application.application.getScaleFactor(),
-            pixbufs);
+        this._pixbuf = GdPrivate.create_collection_icon(Utils.getIconSize(), pixbufs);
         this._emitRefresh();
     },
 
diff --git a/src/utils.js b/src/utils.js
index 7a358ed..d5ca532 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -78,9 +78,7 @@ 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() * Application.application.getScaleFactor(),
-            []);
+        return GdPrivate.create_collection_icon(getIconSize(), []);
     else
         iconName = 'x-office-document';
 


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