[mate-calc] 01/01: debian/patches: Add 0001_init_gtk_before_math_equation_new.patch. Initialise GTK before math_equation_new to prevent a slew of warnings when running from the terminal.
Martin Wimpress
flexiondotorg-guest at moszumanska.debian.org
Tue Mar 6 00:00:59 UTC 2018
This is an automated email from the git hooks/post-receive script.
flexiondotorg-guest pushed a commit to branch master
in repository mate-calc.
commit 3c0a2d7ccd63ebe7af2813a68a32dca8dc3db4b3
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date: Tue Mar 6 00:57:55 2018 +0100
debian/patches: Add 0001_init_gtk_before_math_equation_new.patch. Initialise GTK before math_equation_new to prevent a slew of warnings when running from the terminal.
---
.../0001_init_gtk_before_math_equation_new.patch | 25 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 26 insertions(+)
diff --git a/debian/patches/0001_init_gtk_before_math_equation_new.patch b/debian/patches/0001_init_gtk_before_math_equation_new.patch
new file mode 100644
index 0000000..657facf
--- /dev/null
+++ b/debian/patches/0001_init_gtk_before_math_equation_new.patch
@@ -0,0 +1,25 @@
+Author: Victor A. Santos <victoraur.santos at gmail.com>
+Description: Initialise GTK before math_equation_new to prevent a slew of warnings when running from the terminal.
+
+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);
diff --git a/debian/patches/series b/debian/patches/series
index 2376b91..8010a28 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+0001_init_gtk_before_math_equation_new.patch
1001_add-keywords-field-to-desktop-file.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-calc.git
More information about the pkg-mate-commits
mailing list