[gnome-documents] documents: Make the emblem rendering robust against theme failures



commit 41b220b5b37b8ca8c53349051333b1ab9e00e403
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Mar 22 16:37:06 2014 +0100

    documents: Make the emblem rendering robust against theme failures
    
    Fallout from 54aa0abb6f10bf3dc3068918bcc96128d1a45433
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726885

 src/documents.js |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index bb6ca13..86582d9 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -501,7 +501,7 @@ const DocCommon = new Lang.Class({
 
     _checkEffectsAndUpdateInfo: function() {
         let emblemIcons = [];
-        let emblemedPixbuf = null;
+        let emblemedPixbuf = this.origPixbuf;
         let activeItem;
 
         activeItem = Application.searchCategoryManager.getActiveItem();
@@ -532,8 +532,6 @@ const DocCommon = new Lang.Class({
             } catch (e) {
                 log('Unable to render the emblem: ' + e.toString());
             }
-        } else {
-            emblemedPixbuf = this.origPixbuf;
         }
 
         let thumbnailedPixbuf = null;


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