From 146b4ee042bb55d70af45b7acf031fd3fd0d1dd0 Mon Sep 17 00:00:00 2001 From: Dominik Danelski Date: Wed, 29 Jan 2020 15:08:07 +0100 Subject: [PATCH] Add website in GUI and CLI --- cli.c | 6 ++++-- gtk.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cli.c b/cli.c index 8ae9125..ba30727 100644 --- a/cli.c +++ b/cli.c @@ -34,13 +34,15 @@ int parse_command(int argc, char *argv[]) { "Two arguments are mandatory, song name is included in filename each time.\n" " -h/--help print this help\n" " -v/--version print version number and license\n\n" - "If no options are specified, the program is set to run in GUI mode.\n"); + "If no options are specified, the program is set to run in GUI mode.\n\n" + "Website: https://github.com/Etua/Sagger\n"); } else if(strcmp(argv[1], "-v") == 0 || strcmp(argv[1], "--version") == 0) { printf("%s %s\nCopyright (C) 2020 Dominik Danelski\n\n" "This program comes with ABSOLUTELY NO WARRANTY;\n" "This is free software, and you are welcome to redistribute it under certain conditions.\n" - "More information in the COPYING file and license notices in the source files.\n", program_name, version_number); + "More information in the COPYING file and license notices in the source files.\n\n" + "Website: https://github.com/Etua/Sagger\n", program_name, version_number); } else error(1, 22, NULL); diff --git a/gtk.c b/gtk.c index c015364..83a2e24 100644 --- a/gtk.c +++ b/gtk.c @@ -49,6 +49,7 @@ void open_info_window(GtkWidget *somewidget) { gtk_about_dialog_set_copyright(about, "Copyright © 2020 Dominik 'Etua' Danelski"); gtk_about_dialog_set_comments(about, "Tag audio files with ease"); gtk_about_dialog_set_license_type(about, GTK_LICENSE_GPL_3_0); + gtk_about_dialog_set_website(about, "https://github.com/Etua/Sagger"); gtk_about_dialog_set_authors(about, authors); gtk_dialog_run(GTK_DIALOG(about)); gtk_widget_destroy( GTK_WIDGET(about));