Stop using Gtk.OffscreenWindow
@jonasdn
Submitted by Jonas Danielsson Link to original bug (#773468)
Description
GTK devs want to remove offscreen window and will probably do so in GTK4. We should stop using it. We use it two places today.
src/sidebar.js to generate a drag icon for the routing text entries and in src/printLayout.js to render instructionWidgets to cairo.
When asked what we should do instead, I got the reply:
<jonasdn>
if offscreens are removed (and even if they weren't) what would be the correct way of painting a widget to a surface? We use Gtk.OffscreenWindow in Maps to generate a cairo surface for a text entry that is draggable. So we can use that surface as a drag icon.
<•ebassi> (Emmanuele Bassi) jonasdn: gtk_widget_draw() on a cr that you created The offscreen window is for showing and doing input transformations