Rust: GtkWidget vs gtk::Widget

I am working on porting (running onboard process inside rust app):

And I am stuck in the literally last statement:

gtk_socket_add_id(GTK_SOCKET(data[1]), (Window)atoi(string1));

That is, it does compile but no onboard is displayed. I suspect that because I don’t use GtkSocket but gtk :: socket.