[gnome-shell/wip/re-search: 451/457] remoteSearch: We do not need a fallback for createIcon



commit cbbe4df60b249eede2e182303fe85a9421391511
Author: Tanner Doshier <doshitan gmail com>
Date:   Thu Aug 16 21:22:22 2012 -0500

    remoteSearch: We do not need a fallback for createIcon
    
    Remote providers no longer have access to a grid layout, where an icon is
    a requirement. If they don't specify an icon, don't create one.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=681797

 js/ui/remoteSearch.js |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js
index 2db7583..26bac48 100644
--- a/js/ui/remoteSearch.js
+++ b/js/ui/remoteSearch.js
@@ -128,11 +128,9 @@ const RemoteSearchProvider = new Lang.Class({
             let textureCache = St.TextureCache.get_default();
             return textureCache.load_from_raw(data, hasAlpha,
                                               width, height, rowStride, size);
+        } else {
+            return null;
         }
-
-        // Ugh, but we want to fall back to something ...
-        return new St.Icon({ icon_name: 'text-x-generic',
-                             icon_size: size });
     },
 
     _getResultsFinished: function(results, error) {



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