On 23-11-2018 21:20, Chris Bare wrote:

I saw an example where a subclass implemented:

void onDialogResponse(int response, Dialog dlg)

which can be passed to addOnResponse, but I was hoping for something simpler like this in C:

gsignalconnect_swapped (dialog, "response",

G_CALLBACK (gtk_widget_destroy),
dialog);

Which uses the built in gtkwidgetdestroy function.

This should do it:

import gobject.Signals;

Signals.connect(dialog, "response", &dialog.destroy);