diff options
| Commit | 12cbd061058a5e5a23380fce66169d34af3de746 (patch) | |
|---|---|---|
| Author | 2022-07-19 14:18:16 +0300 | |
| Committer | 2022-07-19 14:18:16 +0300 | |
| Files | 7cabb04515ad4ed21f6f190922ff48c5ad9a23b5 /goodwolf.h | |
| goodwolf-12cbd061058a5e5a23380fce66169d34af3de746.tar goodwolf-12cbd061058a5e5a23380fce66169d34af3de746.tar.gz goodwolf-12cbd061058a5e5a23380fce66169d34af3de746.zip | ||
| Parent | ccbc83e827e11c7deb2959a6752452691c4165a1 (diff) | |
code: Renamed codebase to goodwolf
1 files changed, 51 insertions, 0 deletions
| -rw-r--r-- | goodwolf.h | 51 |
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 <gtk/gtk.h> +#include <inttypes.h> /* uint64_t */ +#include <webkit2/webkit2.h> + +#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 */ |