Best way to make hardcopies from notebook pages

Hi,

I have a Gtk3 C application which displays seismic images and graphs in a GtkNotebook. One of the hardcopy options is to copy the displays from each of the notebook pages into a PDF or odp file. The only way I’ve found to make this work (sort of) is to set the notebook page, then create the hardcopy from the visible notebook page window.

The problem is knowing when the switch page has competed before making the copy. I’ve tried all manor of idle_add and and timeouts but it’s hit and miss as to whether the page is updated before the hardcopy takes place.

Any ideas on how to do this would be much appreciated.

Cheers,

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.