From 4d77eb94ffdc98838c07164eac2655459ddca03f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 22 Jun 2012 19:35:14 +0200 Subject: [PATCH] remoteSearch: Use GIcon instead of icon name Currently we pass an icon name for the 'icon' parameter of the RemoteSearchProvider constructor. In hindsight, using a GIcon instead will give us a bit more flexibility, so change it. https://bugzilla.gnome.org/show_bug.cgi?id=678816 --- js/ui/remoteSearch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js index f0a40fe5a..6a03607ee 100644 --- a/js/ui/remoteSearch.js +++ b/js/ui/remoteSearch.js @@ -62,11 +62,12 @@ function loadRemoteSearchProvidersFromDir(dir, addProviderCallback) { let remoteProvider, title; try { let group = KEY_FILE_GROUP; - let icon = keyfile.get_string(group, 'Icon'); + let iconName = keyfile.get_string(group, 'Icon'); let busName = keyfile.get_string(group, 'BusName'); let objectPath = keyfile.get_string(group, 'ObjectPath'); title = keyfile.get_locale_string(group, 'Title', null); + let icon = new Gio.ThemedIcon({ name: iconName }); remoteProvider = new RemoteSearchProvider(title, icon, busName,