def METHOD_NAME(self, menu):
    type = self.get_type()
    enabled = self.enabledOptionMenu.get_active()
    if self.initialtype != type:
        if self.verify(_("Changing the policy type will cause a relabel of the entire file system on the next boot. Relabeling takes a long time depending on the size of the file system.  Do you wish to continue?")) == Gtk.ResponseType.NO:
            menu.set_active(self.typeHistory)
            return None
        self.relabel_checkbutton.set_active(True)
    self.write_selinux_config(modearray[enabled], type)
    self.typeHistory = menu.get_active()