X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=e40bfd0b5f2bdf93c53fac9e5209fa0d2b2447be;hb=d3d32fd6c754c9e4528471efe10706638a1192dd;hp=0304a9a5e5851b3d11eaa91f5f3a536e63e470dd;hpb=2e9af543630c42a55fba98e9367cea9b268142ed;p=surf.git diff --git a/surf.c b/surf.c index 0304a9a..e40bfd0 100644 --- a/surf.c +++ b/surf.c @@ -115,6 +115,7 @@ static void update(Client *c); 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 @@ -450,10 +451,10 @@ newclient(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;