diff options
author | Premysl 'Anydot' Hruby <dfenze@gmail.com> | 2009-05-04 22:53:29 +0200 |
---|---|---|
committer | Premysl 'Anydot' Hruby <dfenze@gmail.com> | 2009-05-04 23:03:35 +0200 |
commit | 96c22d0ed217d3cada8c5270f5bffa262d14cb18 (patch) | |
tree | 46e99e37190ac3bf39a9aee752e47c21dab38846 /uzbl.h | |
parent | 3338b740dd23d3e88fc1722b56c5b8fda187b627 (diff) |
Move global variables into structs, first round
based on robm's modified and cleaned up patch
Diffstat (limited to 'uzbl.h')
-rw-r--r-- | uzbl.h | 42 |
1 files changed, 42 insertions, 0 deletions
@@ -1,3 +1,45 @@ +/* status bar elements */ +typedef struct { + gint load_progress; +} StatusBar; + +/* gui elements */ +typedef struct { + GtkWidget* main_window; + GtkWidget* mainbar; + GtkWidget* mainbar_label; + GtkScrollbar* scbar_v; // Horizontal and Vertical Scrollbar + GtkScrollbar* scbar_h; // (These are still hidden) + GtkAdjustment* bar_v; // Information about document length + GtkAdjustment* bar_h; // and scrolling position + WebKitWebView* web_view; + gchar* main_title; + + StatusBar sbar; +} GUI; + +/* external communication*/ +typedef struct { + char fifo_path[64]; + char socket_path[108]; +} Communication; + +/* internal state */ +typedef struct { + gchar *uri; + gchar *config_file; + gchar *instance_name; + gchar config_file_path[500]; +} State; + +/* main uzbl data structure */ +typedef struct { + GUI gui; + Communication comm; + State state; + int xwin; +} Uzbl; + typedef struct { char* name; char* param; |