formatting pass.

This commit is contained in:
NunoSempere 2024-02-11 18:25:46 +01:00
parent e5e194f1eb
commit 0f5baf1129

19
rose.c
View File

@ -1,20 +1,22 @@
#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;
static GtkWindow* window; static GtkWindow* window;
static struct { 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);