Skip to content

Commit d438053

Browse files
committed
Fix Gtk3Backend image toggling bug
When images got shown after the first render, they were remaining invisible. For some reason Gtk 3 wants us to explicitly show the widget after changing its pixbuf (or changing its parent). This isn't true for any other widgets afaik. The fix was to explicitly show the image widget at the end of updateImageView.
1 parent 9db800f commit d438053

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Gtk3Backend/Gtk3Backend.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ public final class Gtk3Backend: AppBackend {
676676
)
677677

678678
imageView.setCairoSurface(surface)
679+
imageView.show()
679680
}
680681

681682
// private class Tables {

0 commit comments

Comments
 (0)