From 7d3fa2a478ad19e69f5c87c94c74d606ad632413 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 27 Aug 2010 22:39:17 +0200 Subject: [PATCH] Move WebKitGTK+ 1.1.6 guards to disable delayed pages --- midori/midori-view.c | 4 +++- midori/midori-websettings.c | 2 ++ midori/midori-websettings.h | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 623a6691..a4db75da 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1053,7 +1053,6 @@ webkit_web_view_progress_changed_cb (WebKitWebView* web_view, g_object_notify (G_OBJECT (view), "progress"); } -#if WEBKIT_CHECK_VERSION (1, 1, 6) #if WEBKIT_CHECK_VERSION (1, 1, 14) static void midori_view_web_view_resource_request_cb (WebKitWebView* web_view, @@ -1158,6 +1157,7 @@ midori_view_load_alternate_string (MidoriView* view, #endif } +#if WEBKIT_CHECK_VERSION (1, 1, 6) static gboolean midori_view_display_error (MidoriView* view, const gchar* uri, @@ -3606,6 +3606,7 @@ midori_view_set_uri (MidoriView* view, g_object_notify (G_OBJECT (view), "uri"); return; } + #if WEBKIT_CHECK_VERSION (1, 1, 6) else if (g_str_has_prefix (uri, "pause:")) { gchar* title; @@ -3622,6 +3623,7 @@ midori_view_set_uri (MidoriView* view, katze_item_set_uri (view->item, uri); g_object_notify (G_OBJECT (view), "uri"); } + #endif else if (g_str_has_prefix (uri, "javascript:")) { gboolean result; diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c index 122f0a0c..997ad49a 100644 --- a/midori/midori-websettings.c +++ b/midori/midori-websettings.c @@ -200,7 +200,9 @@ midori_startup_get_type (void) { MIDORI_STARTUP_BLANK_PAGE, "MIDORI_STARTUP_BLANK_PAGE", N_("Show Blank page") }, { MIDORI_STARTUP_HOMEPAGE, "MIDORI_STARTUP_HOMEPAGE", N_("Show Homepage") }, { MIDORI_STARTUP_LAST_OPEN_PAGES, "MIDORI_STARTUP_LAST_OPEN_PAGES", N_("Show last open tabs") }, + #if WEBKIT_CHECK_VERSION (1, 1, 6) { MIDORI_STARTUP_DELAYED_PAGES, "MIDORI_STARTUP_DELAYED_PAGES", N_("Show last tabs without loading") }, + #endif { 0, NULL, NULL } }; type = g_enum_register_static ("MidoriStartup", values); diff --git a/midori/midori-websettings.h b/midori/midori-websettings.h index 2cedff15..a8f36788 100644 --- a/midori/midori-websettings.h +++ b/midori/midori-websettings.h @@ -66,7 +66,9 @@ typedef enum MIDORI_STARTUP_BLANK_PAGE, /* One blank tab or speed dial is opened */ MIDORI_STARTUP_HOMEPAGE, /* One homepage tab is opened */ MIDORI_STARTUP_LAST_OPEN_PAGES, /* The session is loaded and saved */ + #if WEBKIT_CHECK_VERSION (1, 1, 6) MIDORI_STARTUP_DELAYED_PAGES /* The session is saved, loading pages is delayed */ + #endif } MidoriStartup; GType -- 2.39.5