Don't hardcode the project name in its URI

This commit is contained in:
Přemysl Eric Janouch 2022-01-12 10:15:27 +01:00
parent f1e9e47e13
commit cfa90fb7de
Signed by: p
GPG Key ID: A0420B94F92B9493

2
fiv.c
View File

@ -404,7 +404,7 @@ show_about_dialog(GtkWidget *parent)
GtkWidget *website = gtk_label_new(NULL);
gtk_label_set_selectable(GTK_LABEL(website), TRUE);
const char *url = "https://git.janouch.name/p/fiv";
const char *url = "https://git.janouch.name/p/" PROJECT_NAME;
gchar *link = g_strdup_printf("<a href='%s'>%s</a>", url, url);
gtk_label_set_markup(GTK_LABEL(website), link);
g_free(link);