diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-28 15:23:56 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-28 15:23:56 +0000 |
commit | e66c7f9313c27cdc65e34eaf1383b9c6bd70af1d (patch) | |
tree | 773ca24ad1eb20ebc9f4523a2812a159b3086e21 /cocoa | |
parent | e35aecb9aa4765e1ec9ee0472152befa57eb38cf (diff) | |
download | netsurf-e66c7f9313c27cdc65e34eaf1383b9c6bd70af1d.tar.gz netsurf-e66c7f9313c27cdc65e34eaf1383b9c6bd70af1d.tar.bz2 |
Setting path for tree icons when tree class is initialized.
svn path=/trunk/netsurf/; revision=11853
Diffstat (limited to 'cocoa')
-rw-r--r-- | cocoa/NetsurfApp.m | 2 | ||||
-rw-r--r-- | cocoa/Tree.m | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/cocoa/NetsurfApp.m b/cocoa/NetsurfApp.m index 9d8ba4878..2b23b2107 100644 --- a/cocoa/NetsurfApp.m +++ b/cocoa/NetsurfApp.m @@ -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(); } 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 |