blob: 82051c181db2f36634c21cfa521d0af6f17a6bcf (
plain)
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
|
#define DEFAULT_DOWNLOAD "xterm -bg black -fg white -e wget -P "
#define DEFAULT_SEARCH "http://www.google.com/search?q="
#define DEFAULT_FONT "san-serif"
#define DEFAULT_TAB_LENGTH 25
#define DEFAULT_HISTORY_FILE ".sb_history"
#define DEFAULT_COOKIE_FILE ".sb_cookies"
#define DEFAULT_ZOOM_INCREMENT .05
#define DEFAULT_ZOOM_LEVEL .80
#define DEFAULT_HEIGHT 900
#define DEFAULT_WIDTH 800
GQuark term_data_id;
#define get_tab(x, page_idx ) (struct tab*)g_object_get_qdata(G_OBJECT(gtk_notebook_get_nth_page(w.notebook, page_idx ) ), term_data_id);
typedef struct tab {
GtkWidget *scroll;
GtkWidget *label;
gchar *main_title;
gchar *url_entry;
gint load_progress;
guint status_context_id;
WebKitWebView *view;
} tab;
struct {
WebKitWebSettings *webkitsettings;
WebKitWebWindowFeatures *webkitwindowfeatures;
SoupSession *session;
SoupCookieJar *jar;
gboolean hide;
GtkWidget *win;
GtkWidget *bar;
GtkWidget *search;
GtkWidget *vbox;
GtkNotebook *notebook;
GtkWidget *status;
GtkWidget *status_info; } w;
|