diff options
author | raveit65 <[email protected]> | 2017-01-08 20:26:47 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-02-17 12:28:22 +0100 |
commit | e0a35ee6b807d8bdd05c286434291f6dda7b73fd (patch) | |
tree | cb712dac0519ed9768ba519ae49f311856f8fa2a /font-viewer/font-thumbnailer.c | |
parent | fae8db88c7704a942cf5973a355af3895b2af03f (diff) | |
download | mate-control-center-e0a35ee6b807d8bdd05c286434291f6dda7b73fd.tar.bz2 mate-control-center-e0a35ee6b807d8bdd05c286434291f6dda7b73fd.tar.xz |
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
Diffstat (limited to 'font-viewer/font-thumbnailer.c')
-rw-r--r-- | font-viewer/font-thumbnailer.c | 4 |
1 files changed, 0 insertions, 4 deletions
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); |