summaryrefslogtreecommitdiff
path: root/beos/beos_gui.cpp
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-06-07 02:48:31 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-06-07 02:48:31 +0000
commit5e393e19ceaa1fdd698df6f5f3217091e752d3b4 (patch)
tree1fdeaf9de9100d9e245628eb97f5cdd7d077611a /beos/beos_gui.cpp
parent8c1a5323e6bffdcfef658cd02bac45f5d1ba5141 (diff)
downloadnetsurf-5e393e19ceaa1fdd698df6f5f3217091e752d3b4.tar.gz
netsurf-5e393e19ceaa1fdd698df6f5f3217091e752d3b4.tar.bz2
Use bundled resources instead of separate files. throbber uses 'data' type also now.
svn path=/trunk/netsurf/; revision=4297
Diffstat (limited to 'beos/beos_gui.cpp')
-rw-r--r--beos/beos_gui.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/beos/beos_gui.cpp b/beos/beos_gui.cpp
index 233a4337e..6d1372c74 100644
--- a/beos/beos_gui.cpp
+++ b/beos/beos_gui.cpp
@@ -341,10 +341,9 @@ void gui_init(int argc, char** argv)
*/
{
#define STROF(n) #n
-#define FIND_THROB(n) find_resource(filenames[(n)], \
- "throbber/throbber" STROF(n) ".png", \
- "./beos/res/throbber/throbber" STROF(n) ".png")
- char filenames[9][PATH_MAX];
+#define FIND_THROB(n) filenames[(n)] = \
+ "throbber" STROF(n) ".png";
+ char *filenames[9];
FIND_THROB(0);
FIND_THROB(1);
FIND_THROB(2);
@@ -448,13 +447,13 @@ void gui_init(int argc, char** argv)
beos_fetch_filetype_init(buf);
/* set up stylesheet urls */
- find_resource(buf, "beosdefault.css", "./beos/res/beosdefault.css");
- default_stylesheet_url = path_to_url(buf);
+ /*find_resource(buf, "beosdefault.css", "./beos/res/beosdefault.css");*/
+ default_stylesheet_url = strdup("rsrc:/beosdefault.css,text/css");
//default_stylesheet_url = generate_default_css();
LOG(("Using '%s' as Default CSS URL", default_stylesheet_url));
- find_resource(buf, "adblock.css", "./beos/res/adblock.css");
- adblock_stylesheet_url = path_to_url(buf);
+ /*find_resource(buf, "adblock.css", "./beos/res/adblock.css");*/
+ adblock_stylesheet_url = strdup("rsrc:/adblock.css,text/css");
LOG(("Using '%s' as AdBlock CSS URL", adblock_stylesheet_url));
urldb_load(option_url_file);