From 745deb7a9d4bf26a6339a297c3c06bb12f5cc102 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 8 Jan 2006 01:51:33 +0000 Subject: [project @ 2006-01-08 01:51:33 by jmb] Make data file locations user-configurable (no UI for this as yet) Reduce intrusiveness of ncos modifications Fix GTK build Remove Cookies file details from Messages (this data never belonged in there anyway) Make gui_init more robust against memory exhaustion. svn path=/import/netsurf/; revision=2014 --- riscos/theme.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'riscos/theme.c') diff --git a/riscos/theme.c b/riscos/theme.c index 4495316ae..82cddd064 100644 --- a/riscos/theme.c +++ b/riscos/theme.c @@ -174,7 +174,6 @@ struct theme_descriptor *ro_gui_theme_find(const char *leafname) { struct theme_descriptor *ro_gui_theme_get_available(void) { struct theme_descriptor *current; struct theme_descriptor *test; - char pathname[256]; /* close any descriptors we've got so far * _except_ the current theme */ @@ -184,15 +183,11 @@ struct theme_descriptor *ro_gui_theme_get_available(void) { if (strcmp(theme_current->name, "Aletheia") != 0) { /* add our default 'Aletheia' theme */ - snprintf(pathname, 256, "%s.Resources", NETSURF_DIR); - pathname[255] = '\0'; - ro_gui_theme_add_descriptor(pathname, "Aletheia"); + ro_gui_theme_add_descriptor("NetSurf:Resources", "Aletheia"); } /* scan our choices directory */ - snprintf(pathname, 256, "%s%s", THEME_PATH_R, THEME_LEAFNAME); - pathname[255] = '\0'; - ro_gui_theme_get_available_in_dir(pathname); + ro_gui_theme_get_available_in_dir(option_theme_path); /* sort alphabetically in a very rubbish way */ if ((theme_descriptors) && (theme_descriptors->next)) { -- cgit v1.2.3