Remove leftover version guards for WebKit > 1.1.17
This commit is contained in:
parent
8bca83572a
commit
3e2e8906fb
4 changed files with 0 additions and 16 deletions
|
@ -107,7 +107,6 @@ adblock_init_db ()
|
||||||
blockcssprivate = g_string_new ("");
|
blockcssprivate = g_string_new ("");
|
||||||
}
|
}
|
||||||
|
|
||||||
#if WEBKIT_CHECK_VERSION (1, 1, 2)
|
|
||||||
static void
|
static void
|
||||||
adblock_download_notify_status_cb (WebKitDownload* download,
|
adblock_download_notify_status_cb (WebKitDownload* download,
|
||||||
GParamSpec* pspec,
|
GParamSpec* pspec,
|
||||||
|
@ -121,7 +120,6 @@ adblock_download_notify_status_cb (WebKitDownload* download,
|
||||||
g_free (path);
|
g_free (path);
|
||||||
/* g_object_unref (download); */
|
/* g_object_unref (download); */
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static gchar*
|
static gchar*
|
||||||
adblock_get_filename_for_uri (const gchar* uri)
|
adblock_get_filename_for_uri (const gchar* uri)
|
||||||
|
@ -178,7 +176,6 @@ adblock_reload_rules (MidoriExtension* extension,
|
||||||
|
|
||||||
if (!adblock_parse_file (path))
|
if (!adblock_parse_file (path))
|
||||||
{
|
{
|
||||||
#if WEBKIT_CHECK_VERSION (1, 1, 2)
|
|
||||||
WebKitNetworkRequest* request;
|
WebKitNetworkRequest* request;
|
||||||
WebKitDownload* download;
|
WebKitDownload* download;
|
||||||
gchar* destination = g_filename_to_uri (path, NULL, NULL);
|
gchar* destination = g_filename_to_uri (path, NULL, NULL);
|
||||||
|
@ -191,7 +188,6 @@ adblock_reload_rules (MidoriExtension* extension,
|
||||||
g_signal_connect (download, "notify::status",
|
g_signal_connect (download, "notify::status",
|
||||||
G_CALLBACK (adblock_download_notify_status_cb), path);
|
G_CALLBACK (adblock_download_notify_status_cb), path);
|
||||||
webkit_download_start (download);
|
webkit_download_start (download);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
g_free (path);
|
g_free (path);
|
||||||
|
|
|
@ -241,10 +241,8 @@ addons_notify_load_status_cb (MidoriView* view,
|
||||||
const gchar* uri = midori_view_get_display_uri (view);
|
const gchar* uri = midori_view_get_display_uri (view);
|
||||||
WebKitWebView* web_view = WEBKIT_WEB_VIEW (midori_view_get_web_view (view));
|
WebKitWebView* web_view = WEBKIT_WEB_VIEW (midori_view_get_web_view (view));
|
||||||
|
|
||||||
#if WEBKIT_CHECK_VERSION (1, 1, 14)
|
|
||||||
if (webkit_web_view_get_view_source_mode (web_view))
|
if (webkit_web_view_get_view_source_mode (web_view))
|
||||||
return;
|
return;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (uri && *uri)
|
if (uri && *uri)
|
||||||
{
|
{
|
||||||
|
|
|
@ -157,7 +157,6 @@ static void
|
||||||
web_cache_set_content_type (SoupMessage* msg,
|
web_cache_set_content_type (SoupMessage* msg,
|
||||||
SoupBuffer* buffer)
|
SoupBuffer* buffer)
|
||||||
{
|
{
|
||||||
#if WEBKIT_CHECK_VERSION (1, 1, 15)
|
|
||||||
gchar* sniffed_type;
|
gchar* sniffed_type;
|
||||||
SoupContentSniffer* sniffer = soup_content_sniffer_new ();
|
SoupContentSniffer* sniffer = soup_content_sniffer_new ();
|
||||||
if ((sniffed_type = soup_content_sniffer_sniff (sniffer, msg, buffer, NULL)))
|
if ((sniffed_type = soup_content_sniffer_sniff (sniffer, msg, buffer, NULL)))
|
||||||
|
@ -171,7 +170,6 @@ web_cache_set_content_type (SoupMessage* msg,
|
||||||
msg->response_headers, "Content-Type");
|
msg->response_headers, "Content-Type");
|
||||||
g_signal_emit_by_name (msg, "content-sniffed", content_type, NULL);
|
g_signal_emit_by_name (msg, "content-sniffed", content_type, NULL);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -390,7 +388,6 @@ web_cache_session_request_queued_cb (SoupSession* session,
|
||||||
g_free (uri);
|
g_free (uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if WEBKIT_CHECK_VERSION (1, 1, 3)
|
|
||||||
static void
|
static void
|
||||||
web_cache_add_download_cb (MidoriBrowser* browser,
|
web_cache_add_download_cb (MidoriBrowser* browser,
|
||||||
WebKitDownload* download,
|
WebKitDownload* download,
|
||||||
|
@ -402,7 +399,6 @@ web_cache_add_download_cb (MidoriBrowser* browser,
|
||||||
g_object_set_data (G_OBJECT (msg), "midori-web-cache-download",
|
g_object_set_data (G_OBJECT (msg), "midori-web-cache-download",
|
||||||
(gpointer)0xdeadbeef);
|
(gpointer)0xdeadbeef);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
web_cache_deactivate_cb (MidoriExtension* extension,
|
web_cache_deactivate_cb (MidoriExtension* extension,
|
||||||
|
@ -413,10 +409,8 @@ web_cache_app_add_browser_cb (MidoriApp* app,
|
||||||
MidoriBrowser* browser,
|
MidoriBrowser* browser,
|
||||||
MidoriExtension* extension)
|
MidoriExtension* extension)
|
||||||
{
|
{
|
||||||
#if WEBKIT_CHECK_VERSION (1, 1, 3)
|
|
||||||
g_signal_connect (browser, "add-download",
|
g_signal_connect (browser, "add-download",
|
||||||
G_CALLBACK (web_cache_add_download_cb), extension);
|
G_CALLBACK (web_cache_add_download_cb), extension);
|
||||||
#endif
|
|
||||||
g_signal_connect (extension, "deactivate",
|
g_signal_connect (extension, "deactivate",
|
||||||
G_CALLBACK (web_cache_deactivate_cb), browser);
|
G_CALLBACK (web_cache_deactivate_cb), browser);
|
||||||
}
|
}
|
||||||
|
@ -434,10 +428,8 @@ web_cache_deactivate_cb (MidoriExtension* extension,
|
||||||
extension, web_cache_deactivate_cb, browser);
|
extension, web_cache_deactivate_cb, browser);
|
||||||
g_signal_handlers_disconnect_by_func (
|
g_signal_handlers_disconnect_by_func (
|
||||||
app, web_cache_app_add_browser_cb, extension);
|
app, web_cache_app_add_browser_cb, extension);
|
||||||
#if WEBKIT_CHECK_VERSION (1, 1, 3)
|
|
||||||
g_signal_handlers_disconnect_by_func (
|
g_signal_handlers_disconnect_by_func (
|
||||||
browser, web_cache_add_download_cb, extension);
|
browser, web_cache_add_download_cb, extension);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -69,9 +69,7 @@ struct _MidoriView
|
||||||
MidoriLoadStatus load_status;
|
MidoriLoadStatus load_status;
|
||||||
gboolean minimized;
|
gboolean minimized;
|
||||||
gchar* statusbar_text;
|
gchar* statusbar_text;
|
||||||
#if WEBKIT_CHECK_VERSION (1, 1, 15)
|
|
||||||
WebKitHitTestResult* hit_test;
|
WebKitHitTestResult* hit_test;
|
||||||
#endif
|
|
||||||
gchar* link_uri;
|
gchar* link_uri;
|
||||||
gboolean has_selection;
|
gboolean has_selection;
|
||||||
gchar* selected_text;
|
gchar* selected_text;
|
||||||
|
|
Loading…
Reference in a new issue