summaryrefslogtreecommitdiff
path: root/src/math-equation.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-03-15 14:37:12 +0300
committermonsta <[email protected]>2017-03-15 14:37:12 +0300
commitd495cacd8d21bc1362816fab0cd8b10dba728bb6 (patch)
treec3d7fc08bec640cade69d017396503b9ec380454 /src/math-equation.c
parent7744d11bc6322f4db86a88af21bf9c16ed464a27 (diff)
downloadmate-calc-d495cacd8d21bc1362816fab0cd8b10dba728bb6.tar.bz2
mate-calc-d495cacd8d21bc1362816fab0cd8b10dba728bb6.tar.xz
drop old GLib code
Diffstat (limited to 'src/math-equation.c')
-rw-r--r--src/math-equation.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/math-equation.c b/src/math-equation.c
index 8312511..3073804 100644
--- a/src/math-equation.c
+++ b/src/math-equation.c
@@ -1331,11 +1331,7 @@ math_equation_solve(MathEquation *equation)
equation->priv->in_solve = true;
math_equation_set_number_mode(equation, NORMAL);
- #if GLIB_CHECK_VERSION(2, 32, 0)
- g_thread_new("", math_equation_solve_real, equation);
- #else
- g_thread_create(math_equation_solve_real, equation, TRUE, NULL);
- #endif
+ g_thread_new("", math_equation_solve_real, equation);
g_timeout_add(50, math_equation_look_for_answer, equation);
g_timeout_add(100, math_equation_show_in_progress, equation);
@@ -1397,11 +1393,7 @@ math_equation_factorize(MathEquation *equation)
equation->priv->in_solve = true;
- #if GLIB_CHECK_VERSION(2, 32, 0)
- g_thread_new("", math_equation_factorize_real, equation);
- #else
- g_thread_create(math_equation_factorize_real, equation, TRUE, NULL);
- #endif
+ g_thread_new("", math_equation_factorize_real, equation);
g_timeout_add(50, math_equation_look_for_answer, equation);
g_timeout_add(100, math_equation_show_in_progress, equation);