projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee5354
)
widget-factory: Make --version match about
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 19 Feb 2021 03:51:35 +0000
(22:51 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 19 Feb 2021 03:51:35 +0000
(22:51 -0500)
Print the same version information in --version
that we show in the about dialog.
demos/widget-factory/widget-factory.c
patch
|
blob
|
history
diff --git
a/demos/widget-factory/widget-factory.c
b/demos/widget-factory/widget-factory.c
index ef952aca6abd0f7ff9ce989b4157b4dab2218832..8e8da85f4a1e735515f1b3e03a770823859e3c0c 100644
(file)
--- a/
demos/widget-factory/widget-factory.c
+++ b/
demos/widget-factory/widget-factory.c
@@
-2329,10
+2329,10
@@
activate (GApplication *app)
static void
print_version (void)
{
- g_print ("gtk4-widget-factory %
d.%d.%d
\n",
-
gtk_get_major_version ()
,
- g
tk_get_minor_version ()
,
- g
tk_get_micro_version ()
);
+ g_print ("gtk4-widget-factory %
s%s%s
\n",
+
PACKAGE_VERSION
,
+ g
_strcmp0 (PROFILE, "devel") == 0 ? "-" : ""
,
+ g
_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : ""
);
}
static int