~midori/midori/trunk

« back to all changes in this revision

Viewing changes to midori/midori-preferences.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:
21
21
#include <glib/gi18n.h>
22
22
#include <libsoup/soup.h>
23
23
 
24
 
#if WEBKIT_CHECK_VERSION (1, 3, 11)
25
24
    #define LIBSOUP_USE_UNSTABLE_REQUEST_API
26
25
    #include <libsoup/soup-cache.h>
27
 
#endif
28
26
 
29
27
#include <config.h>
30
28
#if HAVE_LIBNOTIFY
381
379
    button = katze_property_proxy (settings, "enable-javascript", NULL);
382
380
    gtk_button_set_label (GTK_BUTTON (button), _("Enable scripts"));
383
381
    INDENTED_ADD (button);
384
 
    #if WEBKIT_CHECK_VERSION (1, 3, 8)
385
382
    button = katze_property_proxy (settings, "enable-webgl", NULL);
386
383
    gtk_button_set_label (GTK_BUTTON (button), _("Enable WebGL support"));
387
384
    #ifndef HAVE_WEBKIT2
398
395
        g_free (supports_web_gl);
399
396
    }
400
397
    #endif
401
 
    #else
402
 
    button = katze_property_proxy (settings, "enable-plugins", NULL);
403
 
    gtk_button_set_label (GTK_BUTTON (button), _("Enable Netscape plugins"));
404
 
    gtk_widget_set_sensitive (button, midori_web_settings_has_plugin_support ());
405
 
    #endif
406
398
    SPANNED_ADD (button);
407
399
    button = katze_property_proxy (settings, "zoom-text-and-images", NULL);
408
400
    gtk_button_set_label (GTK_BUTTON (button), _("Zoom Text and Images"));
513
505
        G_CALLBACK (midori_preferences_notify_proxy_type_cb), label);
514
506
    midori_preferences_notify_proxy_type_cb (settings, NULL, label);
515
507
    #endif
516
 
    #if WEBKIT_CHECK_VERSION (1, 3, 11)
517
508
#ifndef HAVE_WEBKIT2
518
509
    if (soup_session_get_feature (webkit_get_default_session (), SOUP_TYPE_CACHE))
519
510
    {
528
519
        SPANNED_ADD (label);
529
520
    }
530
521
#endif
531
 
    #endif
532
522
    /* i18n: This refers to an application, not the 'user agent' string */
533
523
    label = gtk_label_new (_("Identify as"));
534
524
    gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);