gtk-demo: Make --version match about

Print the same version information in --version
that we show in the about dialog.
This commit is contained in:
Matthias Clasen
2021-02-18 22:52:15 -05:00
parent 4d0a1a97cc
commit 516776b630

View File

@@ -1052,10 +1052,10 @@ out:
static void
print_version (void)
{
g_print ("gtk4-demo %d.%d.%d\n",
gtk_get_major_version (),
gtk_get_minor_version (),
gtk_get_micro_version ());
g_print ("gtk4-demo %s%s%s\n",
PACKAGE_VERSION,
g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
}
static int