[gnome-color-manager] Disconnect the VTE callbacks when ending the calibration to prevent a nasty crash after calibration



commit 4bc7d5f087838a276dee5d0c5ee636fed2b6ff14
Author: Richard Hughes <richard hughsie com>
Date:   Sat Jun 5 00:18:23 2010 +0100

    Disconnect the VTE callbacks when ending the calibration to prevent a nasty crash after calibration

 src/gcm-calibrate-argyll.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-calibrate-argyll.c b/src/gcm-calibrate-argyll.c
index a49a09f..88857d8 100644
--- a/src/gcm-calibrate-argyll.c
+++ b/src/gcm-calibrate-argyll.c
@@ -2957,6 +2957,14 @@ gcm_calibrate_argyll_finalize (GObject *object)
 		g_main_loop_run (priv->loop);
 	}
 
+	/* we don't care if the VTE widget redraws now */
+	g_signal_handlers_disconnect_by_func (calibrate_argyll->priv->terminal,
+					      G_CALLBACK (gcm_calibrate_argyll_exit_cb),
+					      calibrate_argyll);
+	g_signal_handlers_disconnect_by_func (calibrate_argyll->priv->terminal,
+					      G_CALLBACK (gcm_calibrate_argyll_cursor_moved_cb),
+					      calibrate_argyll);
+
 	/* hide */
 	gcm_calibrate_dialog_hide (priv->calibrate_dialog);
 



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