mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Setting path for tree icons when tree class is initialized.
svn path=/trunk/netsurf/; revision=11853
This commit is contained in:
parent
e35aecb9aa
commit
e66c7f9313
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user