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
2025-02-21 04:34:43 +10:30

41 lines
1.0 KiB
C

// SPDX-FileCopyrightText: 2022-2025 Geoffrey D. Bennett <g@b4.vu>
// SPDX-License-Identifier: GPL-3.0-or-later
#include "about.h"
static GdkTexture *logo = NULL;
void activate_about(
GSimpleAction *action,
GVariant *parameter,
gpointer data
) {
GtkWindow *w = GTK_WINDOW(data);
const char *authors[] = {
"Geoffrey D. Bennett <g@b4.vu>",
NULL
};
if (!logo)
logo = gdk_texture_new_from_resource(
"/vu/b4/alsa-scarlett-gui/icons/vu.b4.alsa-scarlett-gui.png"
);
gtk_show_about_dialog(
w,
"program-name", "ALSA Scarlett Control Panel",
"version", "Version " VERSION,
"comments",
"Gtk4 GUI for the ALSA controls presented by the\n"
"Linux kernel Focusrite USB drivers",
"website", "https://github.com/geoffreybennett/alsa-scarlett-gui",
"copyright", "Copyright 2022-2025 Geoffrey D. Bennett",
"license-type", GTK_LICENSE_GPL_3_0,
"logo", logo,
"title", "About ALSA Scarlett Mixer Interface",
"authors", authors,
NULL
);
}