summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-02-22 13:36:34 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2011-02-22 13:36:34 +0100
commit1f938d9e5aa346b75e4f815ccf4a3dc0bc9a3250 (patch)
treed8e1df46d4089f64dcda43493df3a619f1e38398
parentffece2d20673269029bb0b9403e20125e92382fa (diff)
downloadabrt-1f938d9e5aa346b75e4f815ccf4a3dc0bc9a3250.tar.gz
abrt-1f938d9e5aa346b75e4f815ccf4a3dc0bc9a3250.tar.xz
abrt-1f938d9e5aa346b75e4f815ccf4a3dc0bc9a3250.zip
disable next button during the analyze process
-rw-r--r--src/gui-wizard-gtk/wizard.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
index 0881dd44..0a326862 100644
--- a/src/gui-wizard-gtk/wizard.c
+++ b/src/gui-wizard-gtk/wizard.c
@@ -272,7 +272,7 @@ static gboolean consume_cmd_output(GIOChannel *source, GIOCondition condition, g
free(msg);
/* Unfreeze assistant */
gtk_assistant_set_page_complete(GTK_ASSISTANT(assistant),
- pages[PAGENO_ANALYZE_ACTION_SELECTOR].page_widget, true);
+ pages[PAGENO_ANALYZE_PROGRESS].page_widget, true);
return FALSE; /* "please remove this event" */
}
@@ -290,8 +290,10 @@ static gboolean consume_cmd_output(GIOChannel *source, GIOCondition condition, g
static void next_page(GtkAssistant *assistant, gpointer user_data)
{
+ /* page_no is actually the previous page, because this
+ * function is called before assistant goes to the next_page
+ */
int page_no = gtk_assistant_get_current_page(assistant);
- GtkWidget *cur_page_widget = pages[page_no].page_widget;
log("page_no:%d", page_no);
if (page_no == PAGENO_ANALYZE_ACTION_SELECTOR
@@ -328,7 +330,7 @@ static void next_page(GtkAssistant *assistant, gpointer user_data)
gtk_label_set_text(g_lbl_analyze_log, _("Analyzing..."));
/* Freeze assistant so it can't move away from the page until analyzing is done */
//doesn't seem to have effect
- gtk_assistant_set_page_complete(GTK_ASSISTANT(assistant), cur_page_widget, false);
+ gtk_assistant_set_page_complete(GTK_ASSISTANT(assistant), pages[PAGENO_ANALYZE_PROGRESS].page_widget, false);
}
}