This repository has been archived on 2025-09-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
alsa-scarlett-gui/src/about.c
Geoffrey D. Bennett f0b3d3d01d 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.
2022-03-15 23:21:17 +10:30

32 lines
845 B
C

// SPDX-FileCopyrightText: 2022 Geoffrey D. Bennett <g@b4.vu>
// SPDX-License-Identifier: GPL-3.0-or-later
#include "about.h"
void activate_about(
GSimpleAction *action,
GVariant *parameter,
gpointer data
) {
GtkWindow *w = GTK_WINDOW(data);
const char *authors[] = {
"Geoffrey D. Bennett",
NULL
};
gtk_show_about_dialog(
w,
"program-name", "ALSA Scarlett Gen 2/3 Control Panel",
"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",
"license-type", GTK_LICENSE_GPL_3_0,
"logo-icon-name", "alsa-scarlett-gui-logo",
"title", "About ALSA Scarlett Mixer Interface",
"authors", authors,
NULL
);
}