From 9b40045d346d745850fb6f37656ea664b1f9021c Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Fri, 4 Dec 2009 16:58:12 +0100 Subject: [PATCH] hdt: Fixing about menu & show hdt Impact: visual Let's add website, rename contact to mailing list and put all people together --- com32/hdt/hdt-cli-hdt.c | 3 ++- com32/hdt/hdt-menu-about.c | 15 +++++++++++---- com32/hdt/hdt.h | 1 + 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/com32/hdt/hdt-cli-hdt.c b/com32/hdt/hdt-cli-hdt.c index 71d99a4..65bb444 100644 --- a/com32/hdt/hdt-cli-hdt.c +++ b/com32/hdt/hdt-cli-hdt.c @@ -230,8 +230,9 @@ void main_show_hdt(int argc __unused, char **argv __unused, more_printf("HDT\n"); more_printf(" Product : %s\n", PRODUCT_NAME); more_printf(" Version : %s (%s)\n", VERSION, CODENAME); + more_printf(" Website : %s\n", WEBSITE_URL); + more_printf(" Mailing List : %s\n", CONTACT); more_printf(" Project Leader : %s\n", AUTHOR); - more_printf(" Contact : %s\n", CONTACT); more_printf(" Core Developer : %s\n", CORE_DEVELOPER); char *contributors[NB_CONTRIBUTORS] = CONTRIBUTORS; for (int c = 0; c < NB_CONTRIBUTORS; c++) { diff --git a/com32/hdt/hdt-menu-about.c b/com32/hdt/hdt-menu-about.c index 19e5cb0..1e8a6ff 100644 --- a/com32/hdt/hdt-menu-about.c +++ b/com32/hdt/hdt-menu-about.c @@ -51,16 +51,23 @@ void compute_aboutmenu(struct s_my_menu *menu) add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); menu->items_count++; - snprintf(buffer, sizeof buffer, "Project Leader : %s", AUTHOR); - snprintf(statbuffer, sizeof statbuffer, "Project Leader : %s", AUTHOR); + snprintf(buffer, sizeof buffer, "Website : %s", WEBSITE_URL); + snprintf(statbuffer, sizeof statbuffer, "Website : %s",WEBSITE_URL); add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); menu->items_count++; - snprintf(buffer, sizeof buffer, "Contact : %s", CONTACT); - snprintf(statbuffer, sizeof statbuffer, "Contact : %s", CONTACT); + snprintf(buffer, sizeof buffer, "Mailing List : %s", CONTACT); + snprintf(statbuffer, sizeof statbuffer, "Mailing List: %s", CONTACT); add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); menu->items_count++; + add_item("", "", OPT_SEP, "", 0); + + snprintf(buffer, sizeof buffer, "Project Leader : %s", AUTHOR); + snprintf(statbuffer, sizeof statbuffer, "Project Leader : %s", AUTHOR); + add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); + menu->items_count++; + snprintf(buffer, sizeof buffer, "Core Developer : %s", CORE_DEVELOPER); snprintf(statbuffer, sizeof statbuffer, "Core Developer : %s", CORE_DEVELOPER); diff --git a/com32/hdt/hdt.h b/com32/hdt/hdt.h index f84f3a0..dc13d10 100644 --- a/com32/hdt/hdt.h +++ b/com32/hdt/hdt.h @@ -37,6 +37,7 @@ #define CODENAME "bluelabel" #define NB_CONTRIBUTORS 3 #define CONTRIBUTORS {"Sebastien Gonzalve (Patches)", "Gert Hulselmans (Tests)", "Alexander Andino (Design)"} +#define WEBSITE_URL "http://hdt-project.org" #define ATTR_PACKED __attribute__((packed)) -- 2.7.4