Re: Printing example in gtkmm tutorial



On Thu, 2007-11-01 at 17:20 +0300, Igor Gorbounov wrote:
> It seems like something is missing in printing example
> (both simple and advanced).
> It doesn't print at all, just waits for something. The program
> never enters the on_draw_page() callback.
> I've added this method to PrintFormOperation class:
> "virtual bool on_paginate(const Glib::RefPtr<Gtk::PrintContext>& context);"
> which is:
> "bool PrintFormOperation::on_paginate(const 
> Glib::RefPtr<Gtk::PrintContext>& context)
> {
>     return true;
> }"
> 
> And now this example program prints, previews, and prints to pdf-file.
> So what is this "on_paginate" function for, and what is its correct use?
>     Igor Gorbounov

There's a bug in GTK+ that I need to take a look at. This is probably a
good workaround for now.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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