summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormbkma <[email protected]>2020-08-15 20:37:12 +0200
committerraveit65 <[email protected]>2020-09-04 11:29:38 +0200
commit587a457199a5102f9c930ec464efdb6daa420fee (patch)
tree5791303a3347a799d3701912a6bf6c09aef7ac17
parentd35ce451aa5c0be394a7ccf293fd4e7fd03dc42f (diff)
downloadmate-calc-587a457199a5102f9c930ec464efdb6daa420fee.tar.bz2
mate-calc-587a457199a5102f9c930ec464efdb6daa420fee.tar.xz
Refresh bits panel after calculation
-rw-r--r--src/math-equation.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/math-equation.c b/src/math-equation.c
index c465500..ac70948 100644
--- a/src/math-equation.c
+++ b/src/math-equation.c
@@ -997,6 +997,9 @@ math_equation_set_number(MathEquation *equation, const MPNumber *x)
equation->priv->ans_start = gtk_text_buffer_create_mark(GTK_TEXT_BUFFER(equation), NULL, &start, FALSE);
equation->priv->ans_end = gtk_text_buffer_create_mark(GTK_TEXT_BUFFER(equation), NULL, &end, TRUE);
gtk_text_buffer_apply_tag(GTK_TEXT_BUFFER(equation), equation->priv->ans_tag, &start, &end);
+
+ g_object_notify(G_OBJECT(equation), "display");
+
g_free(text);
free_state(state);
}