From e66c7f9313c27cdc65e34eaf1383b9c6bd70af1d Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Mon, 28 Feb 2011 15:23:56 +0000 Subject: Setting path for tree icons when tree class is initialized. svn path=/trunk/netsurf/; revision=11853 --- cocoa/Tree.m | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cocoa/Tree.m') diff --git a/cocoa/Tree.m b/cocoa/Tree.m index b0f5c7c0a..005b1aefe 100644 --- a/cocoa/Tree.m +++ b/cocoa/Tree.m @@ -78,6 +78,14 @@ static const struct treeview_table cocoa_tree_callbacks = { tree_set_redraw( tree, newRedrawing ); } + ++ (void) initialize; +{ + if (self == [Tree class]) { + tree_set_icon_dir( strdup( [[[NSBundle mainBundle] pathForResource: @"Icons" ofType: @""] UTF8String] ) ); + } +} + //MARK: - //MARK: Callbacks -- cgit v1.2.3