summaryrefslogtreecommitdiff
path: root/src/math-window.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2020-03-30 19:40:51 +0200
committerZenWalker <[email protected]>2020-04-01 17:30:22 +0200
commita576b522511e2a8ed6b6ac785d5c4b431d26a983 (patch)
tree0c69ec68fe0fe9a7b091db9ac33066305463772f /src/math-window.c
parentdab8672d5a2eaf356a55d1d5feb5f49f81d38c77 (diff)
downloadmate-calc-a576b522511e2a8ed6b6ac785d5c4b431d26a983.tar.bz2
mate-calc-a576b522511e2a8ed6b6ac785d5c4b431d26a983.tar.xz
math-window: show GNU MPFR and GNU MPC version in about dialog
Diffstat (limited to 'src/math-window.c')
-rw-r--r--src/math-window.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/math-window.c b/src/math-window.c
index 98ab60d..87ac779 100644
--- a/src/math-window.c
+++ b/src/math-window.c
@@ -307,6 +307,7 @@ static void about_cb(GtkWidget* widget, MathWindow* window)
GError *error = NULL;
char **authors;
gsize n_authors = 0, i;
+ gchar *comments = NULL;
bytes = g_resources_lookup_data ("/org/mate/calculator/ui/mate-calc.about", G_RESOURCE_LOOKUP_FLAGS_NONE, &error);
g_assert_no_error (error);
@@ -329,6 +330,9 @@ static void about_cb(GtkWidget* widget, MathWindow* window)
for (p = documenters; *p; ++p)
*p = _(*p);
+ comments = g_strdup_printf (_("Calculator with financial and scientific modes.\nUsing GNU MPFR %s and GNU MPC %s"),
+ mpfr_get_version (), mpc_get_version ());
+
gtk_show_about_dialog(GTK_WINDOW(window),
"program-name", _("MATE Calculator"),
"version", VERSION,
@@ -336,7 +340,7 @@ static void about_cb(GtkWidget* widget, MathWindow* window)
"copyright", _("Copyright \xc2\xa9 1986–2010 The GCalctool authors\n"
"Copyright \xc2\xa9 2011-2020 MATE developers"),
"license", license_trans,
- "comments", _("Calculator with financial and scientific modes."),
+ "comments", comments,
"authors", authors,
"documenters", documenters,
"translator_credits", _("translator-credits"),
@@ -346,6 +350,7 @@ static void about_cb(GtkWidget* widget, MathWindow* window)
"logo-icon-name", "accessories-calculator",
NULL);
+ g_free (comments);
g_strfreev (authors);
g_free (license_trans);
}