-
-static void
-ev_sidebar_thumbnails_set_loading_icon (EvSidebarThumbnails *sidebar_thumbnails)
-{
- if (sidebar_thumbnails->priv->loading_icon)
- g_object_unref (sidebar_thumbnails->priv->loading_icon);
-
- if (sidebar_thumbnails->priv->document) {
- gint width = THUMBNAIL_WIDTH;
- gint height;
- gint page_width, page_height;
-
- /* We get the dimensions of the first page so that we can make a blank
- * icon. */
- ev_page_cache_get_size (sidebar_thumbnails->priv->page_cache, 0,
- sidebar_thumbnails->priv->rotation,
- 1.0, &page_width, &page_height);
-
- height = (gint) (page_height * ((gdouble)width / page_width));
-
- sidebar_thumbnails->priv->loading_icon =
- ev_document_misc_get_thumbnail_frame (width, height, NULL);
- } else {
- sidebar_thumbnails->priv->loading_icon = NULL;
- }
-
-}
-