Crash when passing cairo context to gdk_pixbuf_get_from_surface
pixbuf_get_from_surface takes a surface, but passing the wrong type shouldn't crash.
from gi.repository import Gdk
import cairo
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 10, 10)
cr = cairo.Context(surface)
pixbuf = Gdk.pixbuf_get_from_surface(cr, 0, 0, 10, 10)