|
|
063c337 |
From f1335017aed375ff539163e00a3e12434a0eeed9 Mon Sep 17 00:00:00 2001
|
|
|
063c337 |
From: Jakub Filak <jfilak@redhat.com>
|
|
|
063c337 |
Date: Mon, 8 Feb 2016 19:14:21 +0100
|
|
|
063c337 |
Subject: [PATCH] wizard: remove the code correcting Bugzilla groups
|
|
|
063c337 |
|
|
|
063c337 |
The code was required for Fedora 20 (bug #1087370).
|
|
|
063c337 |
The code was used for almost two years and it is time to get rid of it.
|
|
|
063c337 |
|
|
|
063c337 |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
|
063c337 |
---
|
|
|
063c337 |
src/gui-wizard-gtk/wizard.c | 74 ---------------------------------------------
|
|
|
063c337 |
1 file changed, 74 deletions(-)
|
|
|
063c337 |
|
|
|
063c337 |
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
|
|
|
063c337 |
index 1b05216..50047d5 100644
|
|
|
063c337 |
--- a/src/gui-wizard-gtk/wizard.c
|
|
|
063c337 |
+++ b/src/gui-wizard-gtk/wizard.c
|
|
|
063c337 |
@@ -219,8 +219,6 @@ static const gchar *const page_names[] =
|
|
|
063c337 |
NULL
|
|
|
063c337 |
};
|
|
|
063c337 |
|
|
|
063c337 |
-#define PRIVATE_TICKET_CB "private_ticket_cb"
|
|
|
063c337 |
-
|
|
|
063c337 |
#define SENSITIVE_DATA_WARN "sensitive_data_warning"
|
|
|
063c337 |
#define SENSITIVE_DATA_WARN_MSG "sensitive_data_warning_message"
|
|
|
063c337 |
#define SENSITIVE_LIST "ls_sensitive_words"
|
|
|
063c337 |
@@ -228,7 +226,6 @@ static const gchar *misc_widgets[] =
|
|
|
063c337 |
{
|
|
|
063c337 |
SENSITIVE_DATA_WARN,
|
|
|
063c337 |
SENSITIVE_LIST,
|
|
|
063c337 |
- PRIVATE_TICKET_CB,
|
|
|
063c337 |
NULL
|
|
|
063c337 |
};
|
|
|
063c337 |
|
|
|
063c337 |
@@ -2020,83 +2017,12 @@ static gboolean consume_cmd_output(GIOChannel *source, GIOCondition condition, g
|
|
|
063c337 |
return TRUE; /* "please don't remove this event (yet)" */
|
|
|
063c337 |
}
|
|
|
063c337 |
|
|
|
063c337 |
-static int ask_replace_old_private_group_name(void)
|
|
|
063c337 |
-{
|
|
|
063c337 |
- char *message = xasprintf(_("Private ticket is requested but the group name 'private' has been deprecated. "
|
|
|
063c337 |
- "We kindly ask you to use 'fedora_contrib_private' group name. "
|
|
|
063c337 |
- "Click Yes button or update the configuration manually. Or click No button, if you really want to use 'private' group.\n\n"
|
|
|
063c337 |
- "If you are not sure what this dialogue means, please trust us and click Yes button.\n\n"
|
|
|
063c337 |
- "Read more about the private bug reports at:\n"
|
|
|
063c337 |
- "https://github.com/abrt/abrt/wiki/FAQ#creating-private-bugzilla-tickets\n"
|
|
|
063c337 |
- "https://bugzilla.redhat.com/show_bug.cgi?id=1044653\n"));
|
|
|
063c337 |
-
|
|
|
063c337 |
- char *markup_message = xasprintf(_("Private ticket is requested but the group name private has been deprecated. "
|
|
|
063c337 |
- "We kindly ask you to use fedora_contrib_private group name. "
|
|
|
063c337 |
- "Click Yes button or update the configuration manually. Or click No button, if you really want to use private group.\n\n"
|
|
|
063c337 |
- "If you are not sure what this dialogue means, please trust us and click Yes button.\n\n"
|
|
|
063c337 |
- "Read more about the private bug reports at:\n"
|
|
|
063c337 |
- ""
|
|
|
063c337 |
- "https://github.com/abrt/abrt/wiki/FAQ#creating-private-bugzilla-tickets\n"
|
|
|
063c337 |
- "https://bugzilla.redhat.com/show_bug.cgi?id=1044653\n"));
|
|
|
063c337 |
-
|
|
|
063c337 |
- GtkWidget *old_private_group = gtk_message_dialog_new(GTK_WINDOW(g_wnd_assistant),
|
|
|
063c337 |
- GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
|
|
|
063c337 |
- GTK_MESSAGE_WARNING,
|
|
|
063c337 |
- GTK_BUTTONS_YES_NO,
|
|
|
063c337 |
- message);
|
|
|
063c337 |
-
|
|
|
063c337 |
- gtk_window_set_transient_for(GTK_WINDOW(old_private_group), GTK_WINDOW(g_wnd_assistant));
|
|
|
063c337 |
- gtk_message_dialog_set_markup(GTK_MESSAGE_DIALOG(old_private_group),
|
|
|
063c337 |
- markup_message);
|
|
|
063c337 |
- free(message);
|
|
|
063c337 |
- free(markup_message);
|
|
|
063c337 |
-
|
|
|
063c337 |
- /* Esc -> No, Enter -> Yes */
|
|
|
063c337 |
- gtk_dialog_set_default_response(GTK_DIALOG(old_private_group), GTK_RESPONSE_YES);
|
|
|
063c337 |
-
|
|
|
063c337 |
- gint result = gtk_dialog_run(GTK_DIALOG(old_private_group));
|
|
|
063c337 |
- gtk_widget_destroy(old_private_group);
|
|
|
063c337 |
-
|
|
|
063c337 |
- return result == GTK_RESPONSE_YES;
|
|
|
063c337 |
-}
|
|
|
063c337 |
-
|
|
|
063c337 |
-/*
|
|
|
063c337 |
- * https://bugzilla.redhat.com/show_bug.cgi?id=1044653
|
|
|
063c337 |
- */
|
|
|
063c337 |
-static void correct_bz_private_goup_name(const char *event_name)
|
|
|
063c337 |
-{
|
|
|
063c337 |
- if (strcmp("report_Bugzilla", event_name) == 0 &&
|
|
|
063c337 |
- gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(g_builder, PRIVATE_TICKET_CB))))
|
|
|
063c337 |
- {
|
|
|
063c337 |
- event_config_t *cfg = get_event_config(event_name);
|
|
|
063c337 |
- if (NULL != cfg)
|
|
|
063c337 |
- {
|
|
|
063c337 |
- GList *item = cfg->options;
|
|
|
063c337 |
- for ( ; item != NULL; item = g_list_next(item))
|
|
|
063c337 |
- {
|
|
|
063c337 |
- event_option_t *opt = item->data;
|
|
|
063c337 |
- if (strcmp("Bugzilla_PrivateGroups", opt->eo_name) == 0
|
|
|
063c337 |
- && opt->eo_value
|
|
|
063c337 |
- && strcmp(opt->eo_value, "private") == 0
|
|
|
063c337 |
- && ask_replace_old_private_group_name())
|
|
|
063c337 |
- {
|
|
|
063c337 |
- free(opt->eo_value);
|
|
|
063c337 |
- opt->eo_value = xstrdup("fedora_contrib_private");
|
|
|
063c337 |
- }
|
|
|
063c337 |
- }
|
|
|
063c337 |
- }
|
|
|
063c337 |
- }
|
|
|
063c337 |
-}
|
|
|
063c337 |
-
|
|
|
063c337 |
static void start_event_run(const char *event_name)
|
|
|
063c337 |
{
|
|
|
063c337 |
/* Start event asynchronously on the dump dir
|
|
|
063c337 |
* (synchronous run would freeze GUI until completion)
|
|
|
063c337 |
*/
|
|
|
063c337 |
|
|
|
063c337 |
- /* https://bugzilla.redhat.com/show_bug.cgi?id=1044653 */
|
|
|
063c337 |
- correct_bz_private_goup_name(event_name);
|
|
|
063c337 |
-
|
|
|
063c337 |
struct run_event_state *state = new_run_event_state();
|
|
|
063c337 |
state->logging_callback = run_event_gtk_logging;
|
|
|
063c337 |
state->error_callback = run_event_gtk_error;
|
|
|
063c337 |
--
|
|
|
063c337 |
2.5.5
|
|
|
063c337 |
|