Don't hardcode the version number in the about dialog

Update the Makefile to use git describe to get the version number and
define that as a macro that about.c can use.
This commit is contained in:
Geoffrey D. Bennett
2022-03-15 03:19:01 +10:30
parent a55fe4cb5b
commit f0b3d3d01d
2 changed files with 3 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ void activate_about(
gtk_show_about_dialog(
w,
"program-name", "ALSA Scarlett Gen 2/3 Control Panel",
"version", "Version 0.1",
"version", "Version " VERSION,
"comments", "GTK4 interface to the ALSA Scarlett Gen 2/3 Mixer controls",
"website", "https://github.com/geoffreybennett/alsa-scarlett-gui",
"copyright", "Copyright 2022 Geoffrey D. Bennett",
@@ -29,4 +29,3 @@ void activate_about(
NULL
);
}