GtkDialog mapped without a transient parent. This is discouraged

You really need to read the documentation for GTKmm.

GtkDialog inherits from GtkWindow, so any method on GtkWindow will work on GtkDialog.

If you have a dialog, you’ll need to set its transient parent—usually, the main application window. If you’re presenting a dialog in a signal handler like a “clicked” signal for a GtkButton, you can retrieve the containing window by using something like:

  GtkWidget *ancestor =
    gtk_widget_get_ancestor (button, GTK_TYPE_WINDOW);

Again: you’ll have to read the GTKmm bindings documentation.

1 Like