From 8c189045d953c4dc42076776d6f853a692421a42 Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Tue, 17 May 2011 23:44:15 -0400 Subject: move cb_keypress to callbacks.c, fixed a few warnings, added functions to sb.h --- defaults.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'defaults.h') diff --git a/defaults.h b/defaults.h index 29a7934..82051c1 100644 --- a/defaults.h +++ b/defaults.h @@ -9,3 +9,30 @@ #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; + -- cgit v1.2.3