[evince] [shell] Invert colors of thumbnails when loading in inverted color mode



commit d556974592ef2f1cfb9029be4f9dc29a79a16208
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Tue May 4 11:31:44 2010 +0200

    [shell] Invert colors of thumbnails when loading in inverted color mode
    
    Based on patch by Juanjo Marín. Fixes bug #616111.

 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);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]