diff options
author | Christian Dywan <christian@twotoasts.de> | 2013-04-06 23:16:45 +0200 |
---|---|---|
committer | Christian Dywan <christian@twotoasts.de> | 2013-04-06 23:16:45 +0200 |
commit | 24b970ef51fe42733f119f83e3190e0d4b1ceddb (patch) | |
tree | b253c15eb8cd8ec4afef022d8b4479cf47e0e0ad /katze/midori-paths.vala | |
parent | e6b0a58e7e212bb4328bac705a2ac91926c9c5d0 (diff) | |
download | midori-24b970ef51fe42733f119f83e3190e0d4b1ceddb.tar.gz |
Implement WebKit2 code path of clearing page icons
Diffstat (limited to 'katze/midori-paths.vala')
-rw-r--r-- | katze/midori-paths.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/katze/midori-paths.vala b/katze/midori-paths.vala index 382440ad..24b0e0ac 100644 --- a/katze/midori-paths.vala +++ b/katze/midori-paths.vala @@ -404,13 +404,13 @@ namespace Midori { public static void clear_icons () { assert (cache_dir != null); assert (user_data_dir != null); -#if !HAVE_WEBKIT2 -#if HAVE_WEBKIT_1_8_0 +#if HAVE_WEBKIT2 + WebKit.WebContext.get_default ().get_favicon_database ().clear (); +#elif HAVE_WEBKIT_1_8_0 WebKit.get_favicon_database ().clear (); #elif HAVE_WEBKIT_1_3_13 WebKit.get_icon_database ().clear (); #endif -#endif /* FIXME: Exclude search engine icons */ remove_path (Path.build_filename (cache_dir, "icons")); remove_path (Path.build_filename (user_data_dir, "webkit", "icondatabase")); |