diff options
author | Victor A. Santos <[email protected]> | 2018-03-04 10:39:32 -0300 |
---|---|---|
committer | Victor A. Santos <[email protected]> | 2018-03-04 10:39:32 -0300 |
commit | 6cd2c4dc10a9b73f3f6ef8f0ed01a487a7332f15 (patch) | |
tree | d67d4e438710e20345740226c6902de07d12d5ac | |
parent | f30835f90e8bea3f8fe351eb6acfced2c327f4f2 (diff) | |
download | mate-calc-6cd2c4dc10a9b73f3f6ef8f0ed01a487a7332f15.tar.bz2 mate-calc-6cd2c4dc10a9b73f3f6ef8f0ed01a487a7332f15.tar.xz |
Init gtk before math_equation_new; fix #44
-rw-r--r-- | src/mate-calc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |