diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-05-04 09:31:44 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-05-04 09:31:44 (GMT) |
commit | d556974592ef2f1cfb9029be4f9dc29a79a16208 (patch) | |
tree | a679dfca5225dbd91dd6de752cddcc21827ae6a7 | |
parent | d02aafbc4423ead5b00e452452643e076c4fa2e8 (diff) |
[shell] Invert colors of thumbnails when loading in inverted color mode
Based on patch by Juanjo MarĂn. Fixes bug #616111.
-rw-r--r-- | shell/ev-sidebar-thumbnails.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index cd9797b..7b593f3 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -332,15 +332,18 @@ ev_sidebar_thumbnails_get_loading_icon (EvSidebarThumbnails *sidebar_thumbnails, gint width, gint height) { + EvSidebarThumbnailsPrivate *priv = sidebar_thumbnails->priv; GdkPixbuf *icon; gchar *key; key = g_strdup_printf ("%dx%d", width, height); - icon = g_hash_table_lookup (sidebar_thumbnails->priv->loading_icons, key); + icon = g_hash_table_lookup (priv->loading_icons, key); if (!icon) { - icon = ev_document_misc_get_thumbnail_frame (width, height, NULL); - g_hash_table_insert (sidebar_thumbnails->priv->loading_icons, - key, icon); + gboolean inverted_colors; + + inverted_colors = ev_document_model_get_inverted_colors (priv->model); + icon = ev_document_misc_get_loading_thumbnail (width, height, inverted_colors); + g_hash_table_insert (priv->loading_icons, key, icon); } else { g_free (key); } |