aboutsummaryrefslogtreecommitdiff
path: root/defaults.h
diff options
context:
space:
mode:
authormutantturkey <crazycal00@gmail.com>2011-05-17 23:44:15 -0400
committermutantturkey <crazycal00@gmail.com>2011-05-17 23:44:15 -0400
commit8c189045d953c4dc42076776d6f853a692421a42 (patch)
treec58b5ba540bba60bd178e76fc9823b049cffd6bc /defaults.h
parenta8f412ce4316566396048e394271f6708642e094 (diff)
move cb_keypress to callbacks.c, fixed a few warnings, added functions to sb.h
Diffstat (limited to 'defaults.h')
-rw-r--r--defaults.h27
1 files changed, 27 insertions, 0 deletions
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;
+