summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor A. Santos <[email protected]>2018-03-04 10:39:32 -0300
committerraveit65 <[email protected]>2018-03-13 09:32:33 +0100
commit10e6fdb168e6ac0e3c1a6d28fc0256635205a89a (patch)
tree7742be774c08f4e6b27ced07db7357d99dee0cf3 /src
parenta64b304c6449b77f2ce3f3df68103e5b564d314a (diff)
downloadmate-calc-10e6fdb168e6ac0e3c1a6d28fc0256635205a89a.tar.bz2
mate-calc-10e6fdb168e6ac0e3c1a6d28fc0256635205a89a.tar.xz
Init gtk before math_equation_new
fix #44
Diffstat (limited to 'src')
-rw-r--r--src/mate-calc.c4
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);