From 4a343579867c0659dedc8e4216d02d2c166eee07 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Thu, 3 Feb 2005 13:12:24 +0000 Subject: [project @ 2005-02-03 13:12:24 by rjw] Wider minimum URL bar width, make themes work on NCOS (probably) svn path=/import/netsurf/; revision=1487 --- riscos/theme.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'riscos/theme.c') diff --git a/riscos/theme.c b/riscos/theme.c index 2d7750e82..545663564 100644 --- a/riscos/theme.c +++ b/riscos/theme.c @@ -74,7 +74,7 @@ static wimp_window theme_toolbar_window = { /* Shared icon validation */ -static char theme_url_validation[] = "Pptr_write\0"; +static char theme_url_validation[] = "Pptr_write;KN\0"; static char theme_resize_validation[] = "R1;Pptr_lr,8,6\0"; static char theme_null_text_string[] = "\0"; static char theme_separator_name[] = "separator\0"; @@ -86,9 +86,6 @@ static char theme_separator_name[] = "separator\0"; void ro_gui_theme_initialise(void) { /* Get an initial theme list */ - xosfile_create_dir(".WWW", 0); - xosfile_create_dir(".WWW.NetSurf", 0); - xosfile_create_dir(".WWW.NetSurf.Themes", 0); theme_descriptors = ro_gui_theme_get_available(); } @@ -151,7 +148,11 @@ struct theme_descriptor *ro_gui_theme_get_available(void) { snprintf(pathname, 256, "%s.Resources", NETSURF_DIR); pathname[255] = '\0'; ro_gui_theme_get_available_in_dir(pathname); +#ifndef NCOS ro_gui_theme_get_available_in_dir("Choices:WWW.NetSurf.Themes"); +#else + ro_gui_theme_get_available_in_dir(".Choices.NetSurf.Choices.Themes"); +#endif /* Sort alphabetically in a very rubbish way */ @@ -1164,7 +1165,7 @@ bool ro_gui_theme_process_toolbar(struct toolbar *toolbar, int width) { */ if (toolbar->type == THEME_BROWSER_TOOLBAR) { if (!toolbar->reformat_buttons) left_edge = bottom_edge; - if (toolbar->display_url) bottom_edge += 32; + if (toolbar->display_url) bottom_edge += 64; if (bottom_edge > right_edge) right_edge = bottom_edge; if ((toolbar->descriptor) && (toolbar->descriptor->theme) && (toolbar->display_throbber) && -- cgit v1.2.3