Re: [Gnome-print] Re: Print Preview



On Mon, May 07, 2001 at 05:38:42PM +0200, Lauris Kaplinski wrote:
> 
> You mean something like:
> 
> static int my_printin_function (GnomePrintContext *pc, gpointer data);
> 
> gnome_print_beginpage (pc, "Page 1");
> gnome_print_callback (pc, my_printing_function, my_callback_data_1);
> gnome_print_showpage (pc);
> gnome_print_beginpage (pc, "Page 2");

I was actually thinking of something even simpler.
gboolean (*GnomePrintPageHandler) (GnomePrintContext *pc, int page, gpointer data);
gnome_print_register_page_handler (pc, start_page, end_page, handler, user_data);

> For more complex spooler everything will probably pushed into queue
> at some point anyways.
Agreed.  Thankfully that seems like it would be easy to implement
with the proposed interface.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]