Make the dialog a GObject.