[gnome-color-manager] Reset the VTE widget between commands



commit 1056cdca6a55e4cfd0e9c364ad17e63b59f5294a
Author: Richard Hughes <richard hughsie com>
Date:   Sat Oct 31 12:37:58 2009 +0000

    Reset the VTE widget between commands

 src/gcm-calibrate.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-calibrate.c b/src/gcm-calibrate.c
index c46fb89..b01b9ed 100644
--- a/src/gcm-calibrate.c
+++ b/src/gcm-calibrate.c
@@ -286,6 +286,7 @@ gcm_calibrate_task_neutralise (GcmCalibrate *calibrate, GError **error)
 	egg_debug ("running %s", cmd);
 
 	/* start up the command */
+	vte_terminal_reset (VTE_TERMINAL(priv->terminal), TRUE, FALSE);
 	priv->child_pid = vte_terminal_fork_command (VTE_TERMINAL(priv->terminal), argc[0], &argc[1], NULL, "/tmp", FALSE, FALSE, FALSE);
 
 	/* TRANSLATORS: title, device is a hardware color calibration sensor */
@@ -363,6 +364,7 @@ gcm_calibrate_task_generate_patches (GcmCalibrate *calibrate, GError **error)
 	egg_debug ("running %s", cmd);
 
 	/* start up the command */
+	vte_terminal_reset (VTE_TERMINAL(priv->terminal), TRUE, FALSE);
 	priv->child_pid = vte_terminal_fork_command (VTE_TERMINAL(priv->terminal), argc[0], &argc[1], NULL, "/tmp", FALSE, FALSE, FALSE);
 	g_timeout_add_seconds (3, (GSourceFunc) gcm_calibrate_timeout_cb, calibrate);
 
@@ -408,6 +410,7 @@ gcm_calibrate_task_draw_and_measure (GcmCalibrate *calibrate, GError **error)
 	egg_debug ("running %s", cmd);
 
 	/* start up the command */
+	vte_terminal_reset (VTE_TERMINAL(priv->terminal), TRUE, FALSE);
 	priv->child_pid = vte_terminal_fork_command (VTE_TERMINAL(priv->terminal), argc[0], &argc[1], NULL, "/tmp", FALSE, FALSE, FALSE);
 
 	/* TRANSLATORS: title, drawing means painting to the screen */
@@ -499,6 +502,7 @@ gcm_calibrate_task_generate_profile (GcmCalibrate *calibrate, GError **error)
 	egg_debug ("running %s", cmd);
 
 	/* start up the command */
+	vte_terminal_reset (VTE_TERMINAL(priv->terminal), TRUE, FALSE);
 	priv->child_pid = vte_terminal_fork_command (VTE_TERMINAL(priv->terminal), argc[0], &argc[1], NULL, "/tmp", FALSE, FALSE, FALSE);
 
 	/* TRANSLATORS: title, a profile is a ICC file */



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