| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#include "about.h" |
| 5 |
|
| 6 |
static GdkTexture *logo = NULL; |
| 7 |
|
| 8 |
void activate_about( |
| 9 |
GSimpleAction *action, |
| 10 |
GVariant *parameter, |
| 11 |
gpointer data |
| 12 |
) { |
| 13 |
GtkWindow *w = GTK_WINDOW(data); |
| 14 |
|
| 15 |
const char *authors[] = { |
| 16 |
"Geoffrey D. Bennett <[email protected]>", |
| 17 |
NULL |
| 18 |
}; |
| 19 |
|
| 20 |
if (!logo) |
| 21 |
logo = gdk_texture_new_from_resource( |
| 22 |
"/vu/b4/alsa-scarlett-gui/icons/vu.b4.alsa-scarlett-gui.png" |
| 23 |
); |
| 24 |
|
| 25 |
gtk_show_about_dialog( |
| 26 |
w, |
| 27 |
"program-name", "ALSA Scarlett Control Panel", |
| 28 |
"version", "Version " VERSION, |
| 29 |
"comments", |
| 30 |
"Gtk4 GUI for the ALSA controls presented by the\n" |
| 31 |
"Linux kernel Focusrite USB drivers", |
| 32 |
"website", "https://github.com/geoffreybennett/alsa-scarlett-gui", |
| 33 |
"copyright", "Copyright 2022-2025 Geoffrey D. Bennett", |
| 34 |
"license-type", GTK_LICENSE_GPL_3_0, |
| 35 |
"logo", logo, |
| 36 |
"title", "About ALSA Scarlett Mixer Interface", |
| 37 |
"authors", authors, |
| 38 |
NULL |
| 39 |
); |
| 40 |
} |