From 1fc2f2809d923db7964b799b3140b804908a989c Mon Sep 17 00:00:00 2001 From: "Victor A. Santos" Date: Sun, 4 Mar 2018 10:39:32 -0300 Subject: Init gtk before math_equation_new; fix #44 --- src/mate-calc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mate-calc.c b/src/mate-calc.c index 891bc7e..b31d2f1 100644 --- a/src/mate-calc.c +++ b/src/mate-calc.c @@ -197,6 +197,8 @@ int main(int argc, char **argv) /* Seed random number generator. */ srand48((long) time((time_t *) 0)); + gtk_init(&argc, &argv); + g_settings_var = g_settings_new ("org.mate.calc"); accuracy = g_settings_get_int(g_settings_var, "accuracy"); word_size = g_settings_get_int(g_settings_var, "word-size"); @@ -229,8 +231,6 @@ int main(int argc, char **argv) get_options(argc, argv); - gtk_init(&argc, &argv); - //gtk_window_set_default_icon_name("accessories-calculator"); window = math_window_new(equation); -- cgit v1.2.1