[gtk/wip/chergert/macos-gl-opaque-context: 3/4] gtk-demo: Make --version match about
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/macos-gl-opaque-context: 3/4] gtk-demo: Make --version match about
- Date: Fri, 19 Feb 2021 21:08:59 +0000 (UTC)
commit 57826803d62f6a4f4ef067a63d293ca8bebf3e0d
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 18 22:52:15 2021 -0500
gtk-demo: Make --version match about
Print the same version information in --version
that we show in the about dialog.
demos/gtk-demo/main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index 5ae00882ac..96ec96e476 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]