[AdgCanvas] Added canvas setup with page information
commit00f55854d39537a2997b11e2199a1f3eeadb19c4
authorNicola Fontana <ntd@entidi.it>
Wed, 23 Jun 2010 19:35:16 +0000 (23 21:35 +0200)
committerNicola Fontana <ntd@entidi.it>
Wed, 23 Jun 2010 19:53:22 +0000 (23 21:53 +0200)
treeccdcdacf688d94ee9872e5dcc3aa29e88919e7b6
parent00bcafc327cb11d38a7e6396f6612d119bb5980b
[AdgCanvas] Added canvas setup with page information

Added adg_canvas_set_page_setup() that binds a GtkPageSetup object to a
canvas by setting the "_adg_page_setup" keyed data. This object is used
to set page size and margins like with adg_canvas_set_paper() but the
additional reference can be used later for printing purpose.

Also modified adg_canvas_set_paper() to bind a GtkPageSetup object to
the canvas instead of only setting size and margins as before.
src/adg-gtk/adg-gtk-utils.c
src/adg-gtk/adg-gtk-utils.h
src/adg/adg-canvas.c