diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-01-15 23:11:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-01-26 21:49:12 +0800 |
commit | 1329a581517f453086f3ec46d210bd928f468316 (patch) | |
tree | 1269eb180534cb4d4470abfcf17c71b10e33e20f /widgets | |
parent | 105086680b80db723c940f28eaaa1d38284cd246 (diff) | |
download | gsoc2013-evolution-1329a581517f453086f3ec46d210bd928f468316.tar.gz gsoc2013-evolution-1329a581517f453086f3ec46d210bd928f468316.tar.zst gsoc2013-evolution-1329a581517f453086f3ec46d210bd928f468316.zip |
Adapt ECanvasBackground to latest gtk+-3.0 API.
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/misc/e-canvas-background.c | 7 |
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 * |