projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d0a1a9
)
gtk-demo: Make --version match about
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 19 Feb 2021 03:52:15 +0000
(22:52 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 19 Feb 2021 03:52:15 +0000
(22:52 -0500)
Print the same version information in --version
that we show in the about dialog.
demos/gtk-demo/main.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/main.c
b/demos/gtk-demo/main.c
index 5ae00882ac70db8ad8c1db3742b79f00993cd7a4..96ec96e4764ccfb635f2c70fa48813910aff65a4 100644
(file)
--- 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 ()
,
- g
tk_get_minor_version ()
,
- g
tk_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