Skip to content

Commit

Permalink
Init gtk before math_equation_new
Browse files Browse the repository at this point in the history
fix #44
  • Loading branch information
vaurelios authored and raveit65 committed Mar 13, 2018
1 parent a64b304 commit 10e6fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mate-calc.c
Expand Up @@ -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");
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 10e6fdb

Please sign in to comment.