aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-15 23:11:49 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:26 +0800
commitc888c2678a11dcee6d8e218943317d9ffd009ffa (patch)
tree86fc514ea523d400fec6494fdc5a48176a33d9b5
parentdf3001c114ab019bce8ebf97a040b7c786467694 (diff)
downloadgsoc2013-evolution-c888c2678a11dcee6d8e218943317d9ffd009ffa.tar
gsoc2013-evolution-c888c2678a11dcee6d8e218943317d9ffd009ffa.tar.gz
gsoc2013-evolution-c888c2678a11dcee6d8e218943317d9ffd009ffa.tar.bz2
gsoc2013-evolution-c888c2678a11dcee6d8e218943317d9ffd009ffa.tar.lz
gsoc2013-evolution-c888c2678a11dcee6d8e218943317d9ffd009ffa.tar.xz
gsoc2013-evolution-c888c2678a11dcee6d8e218943317d9ffd009ffa.tar.zst
gsoc2013-evolution-c888c2678a11dcee6d8e218943317d9ffd009ffa.zip
Adapt ECanvasBackground to latest gtk+-3.0 API.
-rw-r--r--widgets/misc/e-canvas-background.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/widgets/misc/e-canvas-background.c b/widgets/misc/e-canvas-background.c
index 80b3bf014e..59d72f6692 100644
--- a/widgets/misc/e-canvas-background.c
+++ b/widgets/misc/e-canvas-background.c
@@ -188,23 +188,22 @@ ecb_init (ECanvasBackground *ecb)
static void
ecb_draw (GnomeCanvasItem *item,
- GdkDrawable *drawable,
+ cairo_t *cr,
gint x,
gint y,
gint width,
gint height)
{
ECanvasBackground *ecb = E_CANVAS_BACKGROUND (item);
- cairo_t *cr;
- cr = gdk_cairo_create (drawable);
+ cairo_save (cr);
cairo_set_source_rgba (cr,
((ecb->priv->rgba >> 24) & 0xff) / 255.0,
((ecb->priv->rgba >> 16) & 0xff) / 255.0,
((ecb->priv->rgba >> 8) & 0xff) / 255.0,
( ecb->priv->rgba & 0xff) / 255.0);
cairo_paint (cr);
- cairo_destroy (cr);
+ cairo_restore (cr);
}
static GnomeCanvasItem *