From 12cbd061058a5e5a23380fce66169d34af3de746 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 19 Jul 2022 14:18:16 +0300 Subject: code: Renamed codebase to goodwolf --- goodwolf.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 goodwolf.h (limited to 'goodwolf.h') diff --git a/goodwolf.h b/goodwolf.h new file mode 100644 index 0000000..df72f00 --- /dev/null +++ b/goodwolf.h @@ -0,0 +1,51 @@ +#ifndef GOODWOLF_H_INCLUDED +#define GOODWOLF_H_INCLUDED + +#include +#include /* uint64_t */ +#include + +#if !WEBKIT_CHECK_VERSION(2, 32, 0) +#error WebkitGTK 2.32.0 is the latest supported version for goodwolf. +#endif + +extern const gchar *homepage; +extern const gchar *version; + +struct Window +{ + GtkWidget *main_window; + GtkWidget *notebook; + GtkWidget *new_tab; + GtkWidget *downloads_tab; + WebKitUserContentManager *content_manager; + WebKitUserContentFilterStore *content_store; +}; + +struct Client +{ + GtkWidget *box; + + GtkWidget *toolbar; + GtkWidget *back; + GtkWidget *forward; + GtkWidget *javascript; + GtkWidget *auto_load_images; + GtkWidget *location; + + uint64_t context_id; + WebKitWebView *webView; + struct Window *window; + + GtkWidget *statusbar; + GtkWidget *statuslabel; + GtkWidget *search; +}; + +GtkWidget *goodwolf_new_tab_box(const gchar *title, struct Client *browser); +void webView_tab_label_change(struct Client *browser, const gchar *title); +struct Client * +new_browser(struct Window *window, const gchar *target_url, struct Client *old_browser); +int goodwolf_new_tab(GtkNotebook *notebook, struct Client *browser, bool auto_switch); +gint goodwolf_get_tab_position(GtkContainer *notebook, GtkWidget *child); +#endif /* GOODWOLF_H_INCLUDED */ -- cgit v1.3.1-26-gb76a