mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove leftover webkit2 conditional.
This commit is contained in:
parent
a5553c9328
commit
8024f44bc0
@ -596,7 +596,6 @@ perform_navigation_policy (WebKitWebView *web_view,
|
|||||||
const gchar* uri; // Can't init it here.
|
const gchar* uri; // Can't init it here.
|
||||||
gchar *scheme = NULL, *location = NULL, *label = NULL;
|
gchar *scheme = NULL, *location = NULL, *label = NULL;
|
||||||
gboolean ignore = FALSE;
|
gboolean ignore = FALSE;
|
||||||
#if WEBKIT2_4
|
|
||||||
WebKitNavigationAction *action =
|
WebKitNavigationAction *action =
|
||||||
webkit_navigation_policy_decision_get_navigation_action (decision);
|
webkit_navigation_policy_decision_get_navigation_action (decision);
|
||||||
if (webkit_navigation_action_get_navigation_type (action) !=
|
if (webkit_navigation_action_get_navigation_type (action) !=
|
||||||
@ -606,9 +605,6 @@ perform_navigation_policy (WebKitWebView *web_view,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
req = webkit_navigation_action_get_request (action);
|
req = webkit_navigation_action_get_request (action);
|
||||||
#else
|
|
||||||
req = webkit_navigation_policy_decision_get_request (decision);
|
|
||||||
#endif
|
|
||||||
uri = webkit_uri_request_get_uri (req);
|
uri = webkit_uri_request_get_uri (req);
|
||||||
scheme = gnc_html_parse_url (self, uri, &location, &label);
|
scheme = gnc_html_parse_url (self, uri, &location, &label);
|
||||||
if (strcmp (scheme, URL_TYPE_FILE) != 0)
|
if (strcmp (scheme, URL_TYPE_FILE) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user