':param bug_report_function: The function that\'s used to report bugs.
apply(bug_report_function, bug_to_report)
:param bugs_to_report: An iterable with the bugs to report. These are
going to be the parameters for the
bug_report_function.'

def __init__(self, bug_report_function, bugs_to_report):

    gtk.MessageDialog.__init__(self, None, (gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT), gtk.MESSAGE_INFO, gtk.BUTTONS_OK, None)
    self.bug_report_function = bug_report_function
    self.bugs_to_report = bugs_to_report
    self.ticket_ids_in_markup = 0
    self.reported_ids = []
    self.set_title('Bug    report    results')
    self.set_icon_from_file(W3AF_ICON)
    self.ok_button = self.get_widget_for_response(gtk.RESPONSE_OK)
    self.ok_button.set_sensitive(False)
