GNOME Bugzilla – Bug 719965
Let remote search providers not provide an icon
Last modified: 2013-12-10 16:03:30 UTC
While trying to add a search provider for gnome-terminal, I was not sure whether it makes more sense to offer a (relatively tiny) icon for each result as compared to using the extra space for showing more text. That is when I realized that the icon is not really optional. The documentation in data/org.gnome.ShellSearchProvider2.xml says: "Optionally, 'icon' (a serialized GIcon as obtained by g_icon_serialize) can be specified ..."
Created attachment 263657 [details] [review] remoteSearch: Let remote search providers not provide an icon I do not know what I will end up doing in my search provider. Maybe I will offer an icon, after all. But at the moment, I found this useful to get things going.
Review of attachment 263657 [details] [review]: ::: js/ui/remoteSearch.js @@ +209,3 @@ + icon = new St.Icon({ gicon: gicon, + icon_size: size }); + return icon Missing semi.
Created attachment 263918 [details] [review] remoteSearch: Let remote search providers not provide an icon Added the missing semi-colon. Sorry about that.
Review of attachment 263918 [details] [review]: Yep.