[gnumeric] disconnect draw-page handler after cancelling



commit a86027754f740430a59352d11581241664094328
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Wed Oct 19 09:51:40 2011 -0600

    disconnect draw-page handler after cancelling
    
    2011-10-19 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* src/print.c (gnm_draw_page_cb): disconnect handler after cancelling

 ChangeLog   |    4 ++++
 src/print.c |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c0ebabc..ada0191 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-19 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* src/print.c (gnm_draw_page_cb): disconnect handler after cancelling
+
 2011-10-18 Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* src/print.c (PrintingInstance): add fields
diff --git a/src/print.c b/src/print.c
index 0538ce8..0fa1b5c 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1325,6 +1325,8 @@ gnm_draw_page_cb (GtkPrintOperation *operation,
 	
 	if (pi->cancel) {
 		gtk_print_operation_cancel (operation);
+		g_signal_handlers_disconnect_by_func
+			(G_OBJECT (operation), G_CALLBACK (gnm_draw_page_cb), user_data);
 		return;
 	}
 



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