Reported by Nicola Fontana, May 1, 2010
Enable a "Print" command in adg-demo using the GTK+ high level printing API: http://library.gnome.org/devel/gtk/stable/gtk-High-level-Printing-API .html The ADG project yet requires GTK+ 2.12 or later, so the printing APIs are always available when the GTK+ support is enabled (it was introduced in GTK+ 2.10). The issue #40 should be implemented before this one, though.
Comment 1 by Nicola Fontana, Jun 15, 2010
Issue #40 has been resolved and provides a way to specify the canvas size using the GTK+ printing APIs. Although the GTK+ API is actually used only to get size and margins, the printing support in ADG should pick up as much information as possible from the GTK+ side. This means would probably be needed to store the paper name somewhere for further use.
Comment 2 by Nicola Fontana, Jun 27, 2010
Issue closed by commit c06b439cb2ff052c4479bf7de3bc3a7b8a4e3a0c. Actually, the API provided with GTK+ support enabled is able to bind a GtkPageSetup to the canvas (using the hardcoded "_gtk_page_setup" associative key of the AdgCanvas) so everything tied to the page setup can be carried together with the canvas.