diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2006-01-08 01:51:33 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2006-01-08 01:51:33 +0000 |
commit | 745deb7a9d4bf26a6339a297c3c06bb12f5cc102 (patch) | |
tree | 21fce77c94096ea7a9297a67edde9857492338d4 /riscos/theme.c | |
parent | 5eb7692b8ff2a0b226fa56ee4bb3c2d8f8e98044 (diff) | |
download | netsurf-745deb7a9d4bf26a6339a297c3c06bb12f5cc102.tar.gz netsurf-745deb7a9d4bf26a6339a297c3c06bb12f5cc102.tar.bz2 |
[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
Diffstat (limited to 'riscos/theme.c')
-rw-r--r-- | riscos/theme.c | 9 |
1 files changed, 2 insertions, 7 deletions
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)) { |