diff --git a/src/Services/Favicon.vala b/src/Services/Favicon.vala index 2c5333f..1b56169 100644 --- a/src/Services/Favicon.vala +++ b/src/Services/Favicon.vala @@ -29,7 +29,8 @@ public class Tuner.Favicon : GLib.Object { * @brief Asynchronously load the favicon for a given station * * This method attempts to load the favicon from the cache first. If not found in the cache - * or if forceReload is true, it will fetch the favicon from the internet asynchronously. + * or if forceReload is true, it will fetch the favicon from the internet asynchronously + * scale it to 48x48 pixels, and save it to a cache file. * * @param station The station for which to load the favicon * @param forceReload If true, bypass the cache and fetch the favicon from the internet diff --git a/src/Widgets/HeaderBar.vala b/src/Widgets/HeaderBar.vala index a2d2fe0..1c36309 100644 --- a/src/Widgets/HeaderBar.vala +++ b/src/Widgets/HeaderBar.vala @@ -261,17 +261,19 @@ public class Tuner.HeaderBar : Gtk.HeaderBar { /** * @brief Load and display the favicon for a station. * - * This method asynchronously loads the favicon for the given station and updates the favicon image. + * This method asynchronously loads the favicon anew for + * the given station and updates the favicon image. * * @param station The station whose favicon should be loaded. */ private void load_favicon(Model.Station station) { - Favicon.load_async.begin (station, false, (favicon, res) => { + Favicon.load_async.begin (station, true, (favicon, res) => { var pxbuf = Favicon.load_async.end (res); if (pxbuf != null) { this.favicon.set_from_pixbuf (pxbuf); } else { + // If favicon is not available, use default icon this.favicon.set_from_icon_name (DEFAULT_ICON_NAME, Gtk.IconSize.DIALOG); } this.favicon.set_size_request (48, 48);