gdk3: use define_method for to_pixbuf methods