Setting path for tree icons when tree class is initialized.

svn path=/trunk/netsurf/; revision=11853
This commit is contained in:
Sven Weidauer 2011-02-28 15:23:56 +00:00
parent e35aecb9aa
commit e66c7f9313
2 changed files with 8 additions and 2 deletions

View File

@ -75,8 +75,6 @@
urldb_load( [[defaults objectForKey: kURLsFileOption] UTF8String] );
urldb_load_cookies( option_cookie_file );
tree_set_icon_dir( strdup( [[[NSBundle mainBundle] pathForResource: @"Icons" ofType: @""] UTF8String] ) );
cocoa_update_scale_factor();
}

View File

@ -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