From 9ef5ac08909992493c583a94403c892c72e71f2b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 4 Jul 2004 19:27:42 +0000 Subject: [project @ 2004-07-04 19:27:41 by jmb] Fixup duplicated message key usage. svn path=/import/netsurf/; revision=1047 --- !NetSurf/Resources/en/Messages | 2 +- !NetSurf/Resources/fr/Messages | 2 +- riscos/hotlist.c | 270 ++++++++++++++++++++--------------------- 3 files changed, 137 insertions(+), 137 deletions(-) diff --git a/!NetSurf/Resources/en/Messages b/!NetSurf/Resources/en/Messages index e0fb50f93..11d031d90 100644 --- a/!NetSurf/Resources/en/Messages +++ b/!NetSurf/Resources/en/Messages @@ -70,7 +70,7 @@ Themes:Themes # Hotlist window HotlistURL:Address: %s -HotlistAdd:Added: %s +HotlistAdded:Added: %s HotlistLast:Last visited: %s HotlistVisits:Visits: %i diff --git a/!NetSurf/Resources/fr/Messages b/!NetSurf/Resources/fr/Messages index a2742d92b..79d69863c 100644 --- a/!NetSurf/Resources/fr/Messages +++ b/!NetSurf/Resources/fr/Messages @@ -70,7 +70,7 @@ Themes:Th # Hotlist window HotlistURL:Address: %s -HotlistAdd:Added: %s +HotlistAdded:Added: %s HotlistLast:Last visited: %s HotlistVisits:Visits: %i diff --git a/riscos/hotlist.c b/riscos/hotlist.c index 96297a62e..ef96d0db3 100644 --- a/riscos/hotlist.c +++ b/riscos/hotlist.c @@ -41,61 +41,61 @@ #define HOTLIST_LOAD_BUFFER 1024 struct hotlist_entry { - + /** The next hotlist entry at this level, or NULL for no more */ struct hotlist_entry *next_entry; - + /** The child hotlist entry (NULL for no children). The children value must be set for this value to take effect. */ struct hotlist_entry *child_entry; - + /** The number of children (-1 for non-folders, >=0 for folders) */ int children; - + /** The title of the hotlist entry/folder */ char *title; - + /** The URL of the hotlist entry (NULL for folders) */ char *url; - + /** Whether this entry is expanded */ bool expanded; - + /** Whether this entry is selected */ bool selected; - + /** The content filetype (not for folders) */ int filetype; - + /** The number of visits */ int visits; - + /** Add/last visit dates */ time_t add_date; time_t last_date; - + /** Position on last reformat (relative to window origin) */ int x0; int y0; int width; int height; - + /** Cached values */ int collapsed_width; int expanded_width; - + /** The width of the various lines sub-text */ int widths[4]; @@ -217,7 +217,7 @@ void ro_gui_hotlist_init(void) { if (!ro_gui_hotlist_load()) { // return; } - + /* Get our sprite ids for faster plotting. This could be done in a far more elegant manner, but it's late and my girlfriend will kill me if I don't go to bed soon. Sorry. @@ -249,7 +249,7 @@ void ro_gui_hotlist_init(void) { warn_user("MiscError", error->errmess); return; } - + /* Update our text icon */ text_icon.data.indirected_text.validation = null_text_string; @@ -260,7 +260,7 @@ void ro_gui_hotlist_init(void) { (wimp_COLOUR_VERY_LIGHT_GREY << wimp_ICON_BG_COLOUR_SHIFT); sprite_icon.data.indirected_sprite.area = wimpspriteop_AREA; sprite_icon.data.indirected_text.size = 12; - + /* Create our window */ error = xwimp_create_window(&hotlist_window_definition, &hotlist_window); @@ -273,7 +273,7 @@ void ro_gui_hotlist_init(void) { /** * Shows the hotlist window. - */ + */ void ro_gui_hotlist_show(void) { os_error *error; int screen_width, screen_height; @@ -306,7 +306,7 @@ void ro_gui_hotlist_show(void) { /* Get the current screen size */ ro_gui_screen_size(&screen_width, &screen_height); - + /* Move to the centre */ dimension = state.visible.x1 - state.visible.x0; @@ -349,7 +349,7 @@ bool ro_gui_hotlist_load(void) { warn_user("HotlistLoadError", 0); return false; } - + /* Get some memory to work with */ load_buf = malloc(HOTLIST_LOAD_BUFFER); @@ -358,7 +358,7 @@ bool ro_gui_hotlist_load(void) { fclose(fp); return false; } - + /* Check for the opening to vaguely validate our file */ if ((fgets(load_buf, HOTLIST_LOAD_BUFFER, fp) == NULL) || @@ -368,17 +368,17 @@ bool ro_gui_hotlist_load(void) { fclose(fp); return false; } - + /* Keep reading until we get to a