comparison gtk3/dw.c @ 1137:e24e5a13ff2c

Added code to test the new print functions in dwtest. GTK3 code mostly works except the for the text. Added stub print functions to all platforms besides GTK3. Need to decide what to do about GTK2; the GTK3 code will work in GTK 2.10 and later, but will require switching to cairo. Mac/Win/OS2 code coming soon. :)
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 09 Sep 2011 09:17:09 +0000
parents 1a5b0908659b
children 9c47a0245872
comparison
equal deleted inserted replaced
1136:1a5b0908659b 1137:e24e5a13ff2c
10221 * flags: Flags to initially configure the print object. 10221 * flags: Flags to initially configure the print object.
10222 * pages: Number of pages to print. 10222 * pages: Number of pages to print.
10223 * drawfunc: The pointer to the function to be used as the callback. 10223 * drawfunc: The pointer to the function to be used as the callback.
10224 * drawdata: User data to be passed to the handler function. 10224 * drawdata: User data to be passed to the handler function.
10225 * Returns: 10225 * Returns:
10226 * A handle to the print object. 10226 * A handle to the print object or NULL on failure.
10227 */ 10227 */
10228 HPRINT API dw_print_new(unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata) 10228 HPRINT API dw_print_new(unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata)
10229 { 10229 {
10230 GtkPrintOperation *op; 10230 GtkPrintOperation *op;
10231 int _locked_by_me = FALSE; 10231 int _locked_by_me = FALSE;