blob: df72f00e8d21ec5723544324948d11f506e9977c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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 */
|