GtkDialog mapped without a transient parent. This is discouraged

    Gtk::Dialog  test;
    test.set_parent(*this);
    test.show();

This is the code in parent window and can’t create the dialog.