[gnumeric] Solver: ensure notification when reason is changed.



commit ac4964961a407ac305f766cba4f7fcbcf89eb471
Author: Morten Welinder <terra gnome org>
Date:   Thu Dec 29 10:38:11 2011 -0500

    Solver: ensure notification when reason is changed.

 src/tools/gnm-solver.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/tools/gnm-solver.c b/src/tools/gnm-solver.c
index ef6f737..617252c 100644
--- a/src/tools/gnm-solver.c
+++ b/src/tools/gnm-solver.c
@@ -765,7 +765,8 @@ gnm_solver_dispose (GObject *obj)
 		}
 	}
 
-	gnm_solver_set_reason (sol, NULL);
+	g_free (sol->reason);
+	sol->reason = NULL;
 
 	if (sol->result) {
 		g_object_unref (sol->result);
@@ -1041,6 +1042,8 @@ gnm_solver_set_reason (GnmSolver *solver, const char *reason)
 
 	g_free (solver->reason);
 	solver->reason = g_strdup (reason);
+
+	g_object_notify (G_OBJECT (solver), "reason");
 }
 
 



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