GTK4: formatting pass
This commit is contained in:
parent
4f3a90daaf
commit
b2793329c8
2
makefile
2
makefile
|
@ -103,6 +103,8 @@ clean:
|
|||
|
||||
format: $(SRC) $(PLUGINS)
|
||||
$(FORMATTER_C) $(SRC) $(PLUGINS) $(rosenrot.h)
|
||||
$(FORMATTER_C) $(SRC_4) $(PLUGINS) $(rosenrot.h)
|
||||
$(FORMATTER_C) $(SRC_4_greenfield) $(PLUGINS) $(rosenrot.h)
|
||||
$(FORMATTER_JS) plugins/readability/readability.js
|
||||
$(FORMATTER_JS) plugins/style/style.js
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ switch (document.domain) {
|
|||
`;
|
||||
break;
|
||||
default:
|
||||
console.log(`Domain: ${document.domain}`)
|
||||
console.log(`Domain: ${document.domain}`);
|
||||
console.log("No custom style");
|
||||
}
|
||||
|
||||
|
|
|
@ -2,14 +2,16 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <webkit/webkit.h>
|
||||
#include "config.h"
|
||||
#include "plugins/plugins.h"
|
||||
#include <webkit/webkit.h>
|
||||
|
||||
/* Global declarations */
|
||||
static GtkNotebook* notebook;
|
||||
static GtkWidget* window;
|
||||
typedef enum { _SEARCH, _FIND, _HIDDEN } Bar_entry_mode;
|
||||
typedef enum { _SEARCH,
|
||||
_FIND,
|
||||
_HIDDEN } Bar_entry_mode;
|
||||
static struct {
|
||||
GtkHeaderBar* widget;
|
||||
GtkEntry* line;
|
||||
|
|
|
@ -2,13 +2,15 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <webkit/webkit.h>
|
||||
#include "config.h"
|
||||
#include "plugins/plugins.h"
|
||||
#include <webkit/webkit.h>
|
||||
|
||||
static GtkNotebook* notebook;
|
||||
static GtkWidget* window;
|
||||
typedef enum { _SEARCH, _FIND, _HIDDEN } Bar_entry_mode;
|
||||
typedef enum { _SEARCH,
|
||||
_FIND,
|
||||
_HIDDEN } Bar_entry_mode;
|
||||
static struct {
|
||||
GtkHeaderBar* widget;
|
||||
GtkEntry* line;
|
||||
|
@ -33,7 +35,6 @@ void load_uri(WebKitWebView* view, const char* uri)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/* Create new tabs */
|
||||
WebKitWebView* create_new_webview()
|
||||
{
|
||||
|
@ -113,9 +114,7 @@ void notebook_create_new_tab(GtkNotebook* notebook, const char* uri)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
// Initialize i18n support with bindtextdomain(), etc.
|
||||
|
||||
|
@ -139,11 +138,9 @@ main (int argc, char **argv)
|
|||
gtk_window_present(GTK_WINDOW(window));
|
||||
gtk_window_set_child(GTK_WINDOW(window), GTK_WIDGET(notebook));
|
||||
|
||||
|
||||
char* first_uri = argc > 1 ? argv[1] : HOME;
|
||||
notebook_create_new_tab(notebook, first_uri);
|
||||
|
||||
|
||||
// Enter the main event loop, and wait for user interaction
|
||||
while (!0)
|
||||
g_main_context_iteration(NULL, TRUE);
|
||||
|
|
Loading…
Reference in New Issue
Block a user