static char winid[64];
static char togglestats[10];
static char pagestats[2];
-static GTlsDatabase *tlsdb;
static int cookiepolicy;
static char *stylefile = NULL;
static const char *useragent;
static WebKitCookieAcceptPolicy cookiepolicy_get(void);
static char cookiepolicy_set(const WebKitCookieAcceptPolicy p);
-static char *copystr(char **str, const char *src);
static GtkWidget *createview(WebKitWebView *v, WebKitNavigationAction *a,
Client *c);
static gboolean decidepolicy(WebKitWebView *v, WebKitPolicyDecision *d,
}
}
-char *
-copystr(char **str, const char *src)
-{
- char *tmp;
- tmp = g_strdup(src);
-
- if (str && *str) {
- g_free(*str);
- *str = tmp;
- }
- return tmp;
-}
-
GtkWidget *
createview(WebKitWebView *v, WebKitNavigationAction *a, Client *c)
{
newclient(Client *rc)
{
Client *c;
- gdouble dpi;
if (!(c = calloc(1, sizeof(Client))))
die("Cannot malloc!\n");
setup(void)
{
int i;
- WebKitWebContext *context;
- GError *error = NULL;
/* clean up any zombies immediately */
sigchld(0);