Skip to content
Permalink
Browse files

Init gtk before math_equation_new; fix #44

  • Loading branch information...
vaurelios committed Mar 4, 2018
1 parent f30835f commit 6cd2c4dc10a9b73f3f6ef8f0ed01a487a7332f15
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);

0 comments on commit 6cd2c4d

Please sign in to comment.
You can’t perform that action at this time.