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
This commit is contained in:
Florian Müllner 2012-06-22 19:35:14 +02:00
parent 1b8d03f945
commit 4d77eb94ff

View File

@ -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,