Applying the surf style to the last patch.
This commit is contained in:
		
							parent
							
								
									a283fa4bc9
								
							
						
					
					
						commit
						d911219554
					
				
							
								
								
									
										16
									
								
								surf.c
								
								
								
								
							
							
						
						
									
										16
									
								
								surf.c
								
								
								
								
							| 
						 | 
					@ -892,16 +892,16 @@ titlechange(WebKitWebView *v, WebKitWebFrame *f, const char *t, Client *c) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
toggle(Client *c, const Arg *arg) { 
 | 
					toggle(Client *c, const Arg *arg) { 
 | 
				
			||||||
  WebKitWebSettings *settings;
 | 
						WebKitWebSettings *settings;
 | 
				
			||||||
  char *name = (char *)arg->v;
 | 
						char *name = (char *)arg->v;
 | 
				
			||||||
  gboolean value;
 | 
						gboolean value;
 | 
				
			||||||
  Arg a = { .b = FALSE };
 | 
						Arg a = { .b = FALSE };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  settings = webkit_web_view_get_settings(c->view);
 | 
						settings = webkit_web_view_get_settings(c->view);
 | 
				
			||||||
  g_object_get(G_OBJECT(settings), name, &value, NULL);
 | 
						g_object_get(G_OBJECT(settings), name, &value, NULL);
 | 
				
			||||||
  g_object_set(G_OBJECT(settings), name, !value, NULL);
 | 
						g_object_set(G_OBJECT(settings), name, !value, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  reload(c,&a);
 | 
						reload(c,&a);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue