Printing example in gtkmm tutorial
- From: Igor Gorbounov <igorbounov topazelectro ru>
- To: GTKMM Lists <gtkmm-list gnome org>
- Subject: Printing example in gtkmm tutorial
- Date: Thu, 01 Nov 2007 17:20:25 +0300
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]