From be651249db6eb7c4729db0c455d849fe64250f08 Mon Sep 17 00:00:00 2001 From: rdanabal Date: Sat, 9 May 2020 21:07:59 +0000 Subject: [PATCH] Update aboutbox.cpp Add bit version on aboutbox --- src/ui/dialog/aboutbox.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/ui/dialog/aboutbox.cpp b/src/ui/dialog/aboutbox.cpp index 94ce20e5f6..5f76eaf898 100644 --- a/src/ui/dialog/aboutbox.cpp +++ b/src/ui/dialog/aboutbox.cpp @@ -20,6 +20,8 @@ #include "aboutbox.h" +#include +#include #include #include @@ -41,6 +43,21 @@ #include "util/units.h" +using namespace std; + +int bit_version() +{ +switch (sizeof(void*)){ + case 4: return 32; + break; + case 8: return 64; + break; + } +} + +const int BIT_VERSION=bit_version(); +std::string BIT_VERSION_STRING = ", bit version = " + std::to_string(BIT_VERSION); + namespace Inkscape { @@ -82,7 +99,7 @@ AboutBox::AboutBox() // inserted into text widgets by the Gtk::AboutDialog parent class // clang-format off set_program_name ( "Inkscape" ); - set_version ( Inkscape::version_string); + set_version ( Inkscape::version_string + BIT_VERSION_STRING); set_logo_icon_name( "" ); // Disable icon set_website ( "https://www.inkscape.org"); set_website_label (_("Inkscape website")); -- GitLab