man page: adding pagecache setting
[vimprobable2.git] / callbacks.c
blob85a0943e4cc95139b8331b86c2cffb7d3ad930da
1 /*
2 (c) 2009 by Leon Winter
3 (c) 2009, 2010 by Hannes Schueller
4 (c) 2009, 2010 by Matto Fransen
5 (c) 2010 by Hans-Peter Deifel
6 (c) 2010 by Thomas Adam
7 see LICENSE file
8 */
10 #include "includes.h"
11 #include "callbacks.h"
12 #include "vimprobable.h"
13 #include "utilities.h"
14 #include "main.h"
16 void webview_scroll_cb(GtkAdjustment * adjustment, gpointer user_data)
18 update_state();
21 gboolean
22 webview_navigation_cb(WebKitWebView * webview, WebKitWebFrame * frame,
23 WebKitNetworkRequest * request,
24 WebKitWebPolicyDecision * decision, gpointer user_data)
26 char *uri = (char *)webkit_network_request_get_uri(request);
27 /* check for external handlers */
28 if (open_handler(uri))
29 return TRUE;
30 else
31 return FALSE;