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,