summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor A. Santos <[email protected]>2018-03-04 10:39:32 -0300
committermonsta <[email protected]>2018-03-13 14:03:13 +0300
commit1fc2f2809d923db7964b799b3140b804908a989c (patch)
treecf612ff00dd83adc8625d01ae003b50934d19417 /src
parent1e783c9ecde57c5f51ed00b3938db3db0df526d1 (diff)
downloadmate-calc-1fc2f2809d923db7964b799b3140b804908a989c.tar.bz2
mate-calc-1fc2f2809d923db7964b799b3140b804908a989c.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);