From afd3b96e2e3be680852f73ae087abdc69dacdcf7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 20 Sep 2010 20:21:51 +0200 Subject: [PATCH] Simplify code: Use cairo_paint() to paint the whole pixmap Also, gdk_drawable_get_size() is going away soon https://bugzilla.gnome.org/show_bug.cgi?id=630203 --- src/ui/frames.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ui/frames.c b/src/ui/frames.c index e25f36115..e2efea645 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -2094,14 +2094,11 @@ clear_backing (GdkPixmap *pixmap, GdkWindow *window, int xoffset, int yoffset) { - int width, height; cairo_t *cr = gdk_cairo_create (pixmap); setup_bg_cr (cr, window, xoffset, yoffset); - gdk_drawable_get_size (GDK_DRAWABLE (pixmap), &width, &height); - cairo_rectangle (cr, 0, 0, width, height); - cairo_fill (cr); + cairo_paint (cr); cairo_destroy (cr); }