formatting pass.
This commit is contained in:
parent
e5e194f1eb
commit
0f5baf1129
13
rose.c
13
rose.c
|
@ -1,11 +1,11 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <webkit2/webkit2.h>
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "plugins/libre_redirect/libre_redirect.h"
|
#include "plugins/libre_redirect/libre_redirect.h"
|
||||||
#include "plugins/readability/readability.h"
|
#include "plugins/readability/readability.h"
|
||||||
#include "plugins/shortcuts/shortcuts.h"
|
#include "plugins/shortcuts/shortcuts.h"
|
||||||
#include "plugins/style/style.h"
|
#include "plugins/style/style.h"
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <webkit2/webkit2.h>
|
||||||
|
|
||||||
/* Global declarations */
|
/* Global declarations */
|
||||||
static GtkNotebook* notebook;
|
static GtkNotebook* notebook;
|
||||||
|
@ -14,7 +14,9 @@ static struct {
|
||||||
GtkHeaderBar* widget;
|
GtkHeaderBar* widget;
|
||||||
GtkEntry* line;
|
GtkEntry* line;
|
||||||
GtkEntryBuffer* line_text;
|
GtkEntryBuffer* line_text;
|
||||||
enum { _SEARCH, _FIND, _HIDDEN } entry_mode;
|
enum { _SEARCH,
|
||||||
|
_FIND,
|
||||||
|
_HIDDEN } entry_mode;
|
||||||
} bar; // top bar.
|
} bar; // top bar.
|
||||||
static int num_tabs = 0;
|
static int num_tabs = 0;
|
||||||
|
|
||||||
|
@ -62,7 +64,8 @@ void redirect_if_annoying(WebKitWebView* view, const char* uri)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void set_custom_style(WebKitWebView* view){
|
void set_custom_style(WebKitWebView* view)
|
||||||
|
{
|
||||||
if (CUSTOM_STYLE_ENABLED) {
|
if (CUSTOM_STYLE_ENABLED) {
|
||||||
char* style_js = malloc(STYLE_N + 1);
|
char* style_js = malloc(STYLE_N + 1);
|
||||||
read_style_js(style_js);
|
read_style_js(style_js);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user