[gnome-font-viewer] font-thumbnailer: don't paint a white background under thumbnails



commit 10135bb24baaae3bd42199221605da1b9eb36d13
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Jan 14 10:37:50 2013 -0500

    font-thumbnailer: don't paint a white background under thumbnails
    
    Since we use those thumbnails in the main view, and it just looks wrong
    when the window backdrops. Use a transparent background instead.

 src/font-thumbnailer.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/font-thumbnailer.c b/src/font-thumbnailer.c
index e7802ad..ef5d7ed 100644
--- a/src/font-thumbnailer.c
+++ b/src/font-thumbnailer.c
@@ -176,7 +176,6 @@ main (int argc,
     gchar *contents = NULL;
     gboolean retval, default_thumbstr = TRUE;
     gint rv = 1;
-    GdkRGBA white = { 1.0, 1.0, 1.0, 1.0 };
     GdkRGBA black = { 0.0, 0.0, 0.0, 1.0 };
     cairo_surface_t *surface;
     cairo_t *cr;
@@ -264,9 +263,6 @@ main (int argc,
                                           thumb_size, thumb_size);
     cr = cairo_create (surface);
 
-    gdk_cairo_set_source_rgba (cr, &white);
-    cairo_paint (cr);
-
     font = cairo_ft_font_face_create_for_ft_face (face, 0);
     cairo_set_font_face (cr, font);
     cairo_font_face_destroy (font);



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