From e0a35ee6b807d8bdd05c286434291f6dda7b73fd Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 8 Jan 2017 20:26:47 +0100 Subject: Fontviewer: 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. taken from: https://git.gnome.org/browse/gnome-font-viewer/commit/?id=10135bb --- font-viewer/font-thumbnailer.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'font-viewer') diff --git a/font-viewer/font-thumbnailer.c b/font-viewer/font-thumbnailer.c index d2d8f759..97ae8bee 100644 --- a/font-viewer/font-thumbnailer.c +++ b/font-viewer/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); -- cgit v1.2.1