[gnome-shell/wip/re-search: 6/12] {app, place}Display: Add provider icons for the search system



commit 44ec9f63cb915c5577fd03e17101b0798e01b3e9
Author: Tanner Doshier <doshitan gmail com>
Date:   Mon Jul 9 19:17:09 2012 -0500

    {app,place}Display: Add provider icons for the search system
    
    Only temporary, to test with, unless remote providers for Settings and Places
    & Devices don't materialize. this.icon should be a GIcon since that is what
    remote providers will return.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=681797

 js/ui/appDisplay.js   |    3 +++
 js/ui/placeDisplay.js |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index b0ff291..64817bb 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1,6 +1,7 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 
 const Clutter = imports.gi.Clutter;
+const Gio = imports.gi.Gio;
 const GLib = imports.gi.GLib;
 const Gtk = imports.gi.Gtk;
 const GMenu = imports.gi.GMenu;
@@ -371,6 +372,8 @@ const SettingsSearchProvider = new Lang.Class({
 
         this._appSys = Shell.AppSystem.get_default();
         this._gnomecc = this._appSys.lookup_app('gnome-control-center.desktop');
+        let appInfo = Gio.DesktopAppInfo.new('gnome-control-center.desktop');
+        this.icon = appInfo.get_icon();
     },
 
     getResultMetas: function(prefs, callback) {
diff --git a/js/ui/placeDisplay.js b/js/ui/placeDisplay.js
index fcdb775..5aae072 100644
--- a/js/ui/placeDisplay.js
+++ b/js/ui/placeDisplay.js
@@ -366,6 +366,8 @@ const PlaceSearchProvider = new Lang.Class({
     _init: function() {
         this.parent(_("PLACES & DEVICES"));
         this.placesManager = new PlacesManager();
+        let appInfo = Gio.DesktopAppInfo.new('nautilus.desktop');
+        this.icon = appInfo.get_icon();
     },
 
     getResultMetas: function(resultIds, callback) {



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