static void windowobjectcleared(GtkWidget *w, WebKitWebFrame *frame, JSContextRef js, JSObjectRef win, Client *c);
static void zoom(Client *c, const Arg *arg);
+/* configuration, allows nested code to access above variables */
#include "config.h"
void
gdk_window_add_filter(GTK_WIDGET(c->win)->window, processx, c);
webkit_web_view_set_full_content_zoom(c->view, TRUE);
settings = webkit_web_view_get_settings(c->view);
- g_object_set (G_OBJECT(settings), "user-agent", "surf", NULL);
+ g_object_set(G_OBJECT(settings), "user-agent", "surf", NULL);
filename = g_build_filename(workdir, "style.css", NULL);
filename = g_strdup_printf("file://%s", filename);
- g_object_set (G_OBJECT(settings), "user-stylesheet-uri", filename, NULL);
+ g_object_set(G_OBJECT(settings), "user-stylesheet-uri", filename, NULL);
c->download = NULL;
c->title = NULL;
session = webkit_get_default_session();
urlprop = XInternAtom(dpy, "_SURF_URL", False);
-
/* create dirs and files */
home = g_get_home_dir();
workdir = g_strdup(g_build_filename(home, ".surf", NULL));
if((tmp = g_fopen(name, "a")));
fclose(tmp);
-
/* cookie persistance */
s = webkit_get_default_session();
name = g_build_filename(workdir, "cookies.txt", NULL);