Applying the surf style to the last patch.

This commit is contained in:
Christoph Lohmann 2012-11-15 14:53:27 +01:00
parent a283fa4bc9
commit d911219554
1 changed files with 8 additions and 8 deletions

16
surf.c
View File

@ -892,16 +892,16 @@ titlechange(WebKitWebView *v, WebKitWebFrame *f, const char *t, Client *c) {
void
toggle(Client *c, const Arg *arg) {
WebKitWebSettings *settings;
char *name = (char *)arg->v;
gboolean value;
Arg a = { .b = FALSE };
WebKitWebSettings *settings;
char *name = (char *)arg->v;
gboolean value;
Arg a = { .b = FALSE };
settings = webkit_web_view_get_settings(c->view);
g_object_get(G_OBJECT(settings), name, &value, NULL);
g_object_set(G_OBJECT(settings), name, !value, NULL);
settings = webkit_web_view_get_settings(c->view);
g_object_get(G_OBJECT(settings), name, &value, NULL);
g_object_set(G_OBJECT(settings), name, !value, NULL);
reload(c,&a);
reload(c,&a);
}
void