diff options
author | David Robillard <d@drobilla.net> | 2011-12-10 18:34:17 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-10 18:34:17 +0000 |
commit | 103de1c0a236eaa7cc7a20986d32aa7739c4976c (patch) | |
tree | a727381eb9786da92daef8aa54f83c306657a91f /src/box.c | |
parent | a7a3bce6d878c1150946a99f85bc58fc4fcd6256 (diff) | |
download | ganv-103de1c0a236eaa7cc7a20986d32aa7739c4976c.tar.gz ganv-103de1c0a236eaa7cc7a20986d32aa7739c4976c.tar.bz2 ganv-103de1c0a236eaa7cc7a20986d32aa7739c4976c.zip |
Make item draw method take a cairo_t instead of GdkDrawable.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3856 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/box.c')
-rw-r--r-- | src/box.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -218,13 +218,12 @@ ganv_box_update(GanvItem* item, static void ganv_box_draw(GanvItem* item, - GdkDrawable* drawable, + cairo_t* cr, int cx, int cy, int width, int height) { GanvBox* box = GANV_BOX(item); GanvBoxImpl* impl = box->impl; - cairo_t* cr = gdk_cairo_create(drawable); double x1 = impl->coords.x1; double y1 = impl->coords.y1; @@ -286,9 +285,7 @@ ganv_box_draw(GanvItem* item, } GanvItemClass* item_class = GANV_ITEM_CLASS(parent_class); - item_class->draw(item, drawable, cx, cy, width, height); - - cairo_destroy(cr); + item_class->draw(item, cr, cx, cy, width, height); } static double |