~midori/midori/trunk

« back to all changes in this revision

Viewing changes to midori/midori-privatedata.c

  • Committer: Tarmac
  • Author(s): Christian Dywan
  • Date: 2013-06-19 21:00:46 UTC
  • mfrom: (6216.1.10 midori.butcher)
  • Revision ID: tarmac-20130619210046-i3yv8cnkyjuafubb
Bump WebKit requirement to 1.8.3 and drop support for earlier versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <gdk/gdkkeysyms.h>
23
23
#include <sqlite3.h>
24
24
 
25
 
#if WEBKIT_CHECK_VERSION (1, 3, 11)
26
25
    #define LIBSOUP_USE_UNSTABLE_REQUEST_API
27
26
    #include <libsoup/soup-cache.h>
28
 
#endif
29
27
 
30
28
static void
31
29
#ifdef HAVE_GRANITE
273
271
    webkit_remove_all_web_databases ();
274
272
 
275
273
    /* HTML5 offline application caches */
276
 
    #if WEBKIT_CHECK_VERSION (1, 3, 13)
277
274
    /* Changing the size implies clearing the cache */
278
275
    webkit_application_cache_set_maximum_size (
279
276
        webkit_application_cache_get_maximum_size () - 1);
280
 
    #endif
281
277
#endif
282
278
}
283
279
 
299
295
    g_free (filename);
300
296
}
301
297
 
302
 
#if WEBKIT_CHECK_VERSION (1, 3, 11)
303
298
static void
304
299
midori_clear_web_cache_cb (void)
305
300
{
315
310
    g_free (cache);
316
311
#endif
317
312
}
318
 
#endif
319
313
 
320
314
void
321
315
midori_private_data_register_built_ins ()
325
319
        G_CALLBACK (midori_clear_saved_logins_cb));
326
320
    midori_private_data_register_item ("web-cookies", _("Cookies and Website data"),
327
321
        G_CALLBACK (midori_clear_web_cookies_cb));
328
 
    #if WEBKIT_CHECK_VERSION (1, 3, 11)
329
322
    /* TODO: Preserve page icons of search engines and merge privacy items */
330
323
    midori_private_data_register_item ("web-cache", _("Web Cache"),
331
324
        G_CALLBACK (midori_clear_web_cache_cb));
332
 
    #endif
333
325
    midori_private_data_register_item ("page-icons", _("Website icons"),
334
326
        G_CALLBACK (midori_paths_clear_icons));
335
327
}