diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-08-08 20:16:17 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-08-08 20:16:17 +0000 |
commit | afa046e1be4d01acdc035fbec2dab530c9e48abe (patch) | |
tree | 107f18b3e95d681dc5261b3dae8193cb49004ceb /riscos/gui.c | |
parent | 8337acfc7839cde431d4761bbe693f0faa17b741 (diff) | |
download | netsurf-afa046e1be4d01acdc035fbec2dab530c9e48abe.tar.gz netsurf-afa046e1be4d01acdc035fbec2dab530c9e48abe.tar.bz2 |
[project @ 2004-08-08 20:16:17 by rjw]
Internal changes for theme handling. Tinct is now an external resource.
svn path=/import/netsurf/; revision=1196
Diffstat (limited to 'riscos/gui.c')
-rw-r--r-- | riscos/gui.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/riscos/gui.c b/riscos/gui.c index 44e76ed4e..ebc450e3d 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -165,6 +165,7 @@ void gui_init(int argc, char** argv) char theme_fname[256]; os_error *error; int length; + struct theme_entry *theme; xhourglass_start(1); @@ -223,7 +224,10 @@ void gui_init(int argc, char** argv) } if (option_theme == NULL) strcpy(theme_fname, "<NetSurf$Dir>.Themes.Default"); - ro_theme_load(theme_fname); + theme = ro_theme_load(theme_fname); + if (theme == NULL) + LOG(("Unable to load default theme")); + ro_theme_apply(theme); if ((length = snprintf(path, sizeof(path), "<NetSurf$Dir>.Resources.%s.Templates", |