[gnome-color-manager] trivial: ensure we reset the state machine after user input



commit d3a64b308d86550853dbb090bb19d4961dd57ea7
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jan 27 21:58:31 2010 +0000

    trivial: ensure we reset the state machine after user input

 src/gcm-calibrate-argyll.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-calibrate-argyll.c b/src/gcm-calibrate-argyll.c
index 26d53f9..23280f5 100644
--- a/src/gcm-calibrate-argyll.c
+++ b/src/gcm-calibrate-argyll.c
@@ -1370,11 +1370,14 @@ gcm_calibrate_argyll_ok_cb (GtkWidget *widget, GcmCalibrateArgyll *calibrate_arg
 	if (priv->state == GCM_CALIBRATE_ARGYLL_STATE_WAITING_FOR_STDIN) {
 		vte_terminal_feed_child (VTE_TERMINAL(priv->terminal), " ", 1);
 		gcm_calibrate_argyll_pop_dialog (calibrate_argyll);
+		priv->state = GCM_CALIBRATE_ARGYLL_STATE_RUNNING;
 	}
 
 	/* clear loop if waiting */
-	if (priv->state == GCM_CALIBRATE_ARGYLL_STATE_WAITING_FOR_LOOP)
+	if (priv->state == GCM_CALIBRATE_ARGYLL_STATE_WAITING_FOR_LOOP) {
 		g_main_loop_quit (priv->loop);
+		priv->state = GCM_CALIBRATE_ARGYLL_STATE_RUNNING;
+	}
 
 	priv->response = GTK_RESPONSE_OK;
 	gtk_widget_hide (widget);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]