Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 556 lines (415 sloc) 11.535 kb
7c0312b @barrucadu Reimplemented my changes:
barrucadu authored
1 /* -*- c-basic-offset: 4; -*-
2
9ac2796 @robm moved bindings to uzbl.bindings
robm authored
3 * See LICENSE for license details
4 *
5 * Changelog:
6 * ---------
7 *
8 * (c) 2009 by Robert Manea
9 * - introduced struct concept
10 * - statusbar template
f70df5a @damienleone clean traling whitespaces
damienleone authored
11 *
9ac2796 @robm moved bindings to uzbl.bindings
robm authored
12 */
a7ffb38 @robm move globals to structs, another round.
robm authored
13
757b51d @DuClare Disable splitting for some actions, fix sampleconfig-dev
DuClare authored
14 #define NOSPLIT ((void*)1)
02710b3 @robm added default status_format
robm authored
15
b329cac @DuClare Add SET handling for useragent.
DuClare authored
16 enum {
17 /* statusbar symbols */
f70df5a @damienleone clean traling whitespaces
damienleone authored
18 SYM_TITLE, SYM_URI, SYM_NAME,
b329cac @DuClare Add SET handling for useragent.
DuClare authored
19 SYM_LOADPRGS, SYM_LOADPRGSBAR,
20 SYM_KEYCMD, SYM_MODE, SYM_MSG,
ae20aa3 @Dieterbe SELECTED_URI variable + allow variable replacing in window title in both...
Dieterbe authored
21 SYM_SELECTED_URI,
b329cac @DuClare Add SET handling for useragent.
DuClare authored
22 /* useragent symbols */
23 SYM_WK_MAJ, SYM_WK_MIN, SYM_WK_MIC,
24 SYM_SYSNAME, SYM_NODENAME,
25 SYM_KERNREL, SYM_KERNVER,
26 SYM_ARCHSYS, SYM_ARCHUZBL,
27 SYM_DOMAINNAME, SYM_COMMIT
28 };
29
ef4b3ca @robm refactored status bar template symbol definition and setup
robm authored
30 const struct {
31 gchar *symbol_name;
32 guint symbol_token;
33 } symbols[] = {
34 {"NAME", SYM_NAME},
35 {"URI", SYM_URI},
36 {"TITLE", SYM_TITLE},
ae20aa3 @Dieterbe SELECTED_URI variable + allow variable replacing in window title in both...
Dieterbe authored
37 {"SELECTED_URI", SYM_SELECTED_URI},
448aa22 @robm added KEYCMD to statusbar template
robm authored
38 {"KEYCMD", SYM_KEYCMD},
f7abb5e @robm added MODE symbol to statusbar template
robm authored
39 {"MODE", SYM_MODE},
9e0d672 @robm added status_msg and MSG to status template
robm authored
40 {"MSG", SYM_MSG},
ef4b3ca @robm refactored status bar template symbol definition and setup
robm authored
41 {"LOAD_PROGRESS", SYM_LOADPRGS},
42 {"LOAD_PROGRESSBAR", SYM_LOADPRGSBAR},
b329cac @DuClare Add SET handling for useragent.
DuClare authored
43
44 {"WEBKIT_MAJOR", SYM_WK_MAJ},
45 {"WEBKIT_MINOR", SYM_WK_MIN},
46 {"WEBKIT_MICRO", SYM_WK_MIC},
47 {"SYSNAME", SYM_SYSNAME},
48 {"NODENAME", SYM_NODENAME},
49 {"KERNREL", SYM_KERNREL},
50 {"KERNVER", SYM_KERNVER},
51 {"ARCH_SYSTEM", SYM_ARCHSYS},
52 {"ARCH_UZBL", SYM_ARCHUZBL},
53 {"DOMAINNAME", SYM_DOMAINNAME},
54 {"COMMIT", SYM_COMMIT},
ef4b3ca @robm refactored status bar template symbol definition and setup
robm authored
55 {NULL, 0}
56 }, *symp = symbols;
57
96c22d0 @anydot Move global variables into structs, first round
anydot authored
58 /* status bar elements */
59 typedef struct {
60 gint load_progress;
9e0d672 @robm added status_msg and MSG to status template
robm authored
61 gchar *msg;
be6cd89 @robm added possibility to configure the ascii progressbar
robm authored
62 gchar *progress_s, *progress_u;
63 int progress_w;
96c22d0 @anydot Move global variables into structs, first round
anydot authored
64 } StatusBar;
65
a7ffb38 @robm move globals to structs, another round.
robm authored
66
96c22d0 @anydot Move global variables into structs, first round
anydot authored
67 /* gui elements */
68 typedef struct {
69 GtkWidget* main_window;
4f2837f @holizz Added a GtkPlug which plugs into a socket ID specified by -s.
holizz authored
70 GtkPlug* plug;
d6edddd @robm added status_top to cmd parser
robm authored
71 GtkWidget* scrolled_win;
72 GtkWidget* vbox;
96c22d0 @anydot Move global variables into structs, first round
anydot authored
73 GtkWidget* mainbar;
74 GtkWidget* mainbar_label;
75 GtkScrollbar* scbar_v; // Horizontal and Vertical Scrollbar
76 GtkScrollbar* scbar_h; // (These are still hidden)
77 GtkAdjustment* bar_v; // Information about document length
78 GtkAdjustment* bar_h; // and scrolling position
79 WebKitWebView* web_view;
80 gchar* main_title;
6cccec4 @Dieterbe make icon setting configurable
Dieterbe authored
81 gchar* icon;
96c22d0 @anydot Move global variables into structs, first round
anydot authored
82
e04be0f @robm added support for WebInspector
robm authored
83 /* WebInspector */
84 GtkWidget *inspector_window;
85 WebKitWebInspector *inspector;
86
96c22d0 @anydot Move global variables into structs, first round
anydot authored
87 StatusBar sbar;
88 } GUI;
89
a7ffb38 @robm move globals to structs, another round.
robm authored
90
96c22d0 @anydot Move global variables into structs, first round
anydot authored
91 /* external communication*/
8f3fa4d @robm Move globals to structs, one more round. introducing struct Behaviour
robm authored
92 enum { FIFO, SOCKET};
96c22d0 @anydot Move global variables into structs, first round
anydot authored
93 typedef struct {
6aa99a6 @DuClare Added functionality for (re)setting fifo_dir.
DuClare authored
94 gchar *fifo_path;
95 gchar *socket_path;
06decd1 @robm first partially working command parser
robm authored
96 /* stores (key)"variable name" -> (value)"pointer to this var*/
97 GHashTable *proto_var;
3b9d97b @DuClare Add (spawn|sh)_sync, make handle_cookies use run_handler
DuClare authored
98 gchar *sync_stdout;
96c22d0 @anydot Move global variables into structs, first round
anydot authored
99 } Communication;
100
a7ffb38 @robm move globals to structs, another round.
robm authored
101
96c22d0 @anydot Move global variables into structs, first round
anydot authored
102 /* internal state */
103 typedef struct {
104 gchar *uri;
105 gchar *config_file;
4f2837f @holizz Added a GtkPlug which plugs into a socket ID specified by -s.
holizz authored
106 int socket_id;
107 char *instance_name;
6ac8a0d @barrucadu merge in from salinasv
barrucadu authored
108 gchar *selected_url;
109 gchar *executable_path;
a7ffb38 @robm move globals to structs, another round.
robm authored
110 GString* keycmd;
6996b4d @barrucadu Merge branch 'experimental' of git://github.com/DuClare/uzbl into experi...
barrucadu authored
111 gchar* searchtx;
a7ffb38 @robm move globals to structs, another round.
robm authored
112 struct utsname unameinfo; /* system info */
7c0312b @barrucadu Reimplemented my changes:
barrucadu authored
113 gboolean verbose;
96c22d0 @anydot Move global variables into structs, first round
anydot authored
114 } State;
115
a7ffb38 @robm move globals to structs, another round.
robm authored
116
8f3fa4d @robm Move globals to structs, one more round. introducing struct Behaviour
robm authored
117 /* networking */
0dc558f @robm Refactored networking variables to use the new struct concept
robm authored
118 typedef struct {
119 SoupSession *soup_session;
120 SoupLogger *soup_logger;
121 char *proxy_url;
122 char *useragent;
123 gint max_conns;
124 gint max_conns_host;
125 } Network;
126
a7ffb38 @robm move globals to structs, another round.
robm authored
127
8f3fa4d @robm Move globals to structs, one more round. introducing struct Behaviour
robm authored
128 /* behaviour */
129 typedef struct {
702868a @DuClare Added load_finish_handler, call when a page has finished loading.
DuClare authored
130 gchar* load_finish_handler;
c445d93 @DuClare Add load_start_handler
DuClare authored
131 gchar* load_start_handler;
4636b09 @DuClare Allow splitting wo/unescaping, add load_commit_handler, fix run_handler
DuClare authored
132 gchar* load_commit_handler;
9155f75 @Dieterbe support for changing the background color of the statusbar correctly
Dieterbe authored
133 gchar* status_format;
ae20aa3 @Dieterbe SELECTED_URI variable + allow variable replacing in window title in both...
Dieterbe authored
134 gchar* title_format_short;
135 gchar* title_format_long;
9155f75 @Dieterbe support for changing the background color of the statusbar correctly
Dieterbe authored
136 gchar* status_background;
8f3fa4d @robm Move globals to structs, one more round. introducing struct Behaviour
robm authored
137 gchar* history_handler;
138 gchar* fifo_dir;
139 gchar* socket_dir;
140 gchar* download_handler;
141 gchar* cookie_handler;
142 gboolean always_insert_mode;
143 gboolean show_status;
144 gboolean insert_mode;
145 gboolean status_top;
d5f76f3 @Dieterbe better name for resetting to command mode
Dieterbe authored
146 gboolean reset_command_mode;
8f3fa4d @robm Move globals to structs, one more round. introducing struct Behaviour
robm authored
147 gchar* modkey;
148 guint modmask;
149 guint http_debug;
95db603 @robm export more WebKitWebSettings through the variable interface
robm authored
150 gchar* shell_cmd;
151 /* WebKitWebSettings exports */
df1d2a4 @DuClare Shorten some lines and rename default_*_size to *_size
DuClare authored
152 guint font_size;
153 guint monospace_size;
6c45107 @DuClare Add variable: minimum_font_size
DuClare authored
154 guint minimum_font_size;
79bc589 Replaced reset_zoom with zoom_level; added floats to commands
uranther authored
155 gfloat zoom_level;
5aebf8f @DuClare Add var: disable_plugins
DuClare authored
156 guint disable_plugins;
95db603 @robm export more WebKitWebSettings through the variable interface
robm authored
157 guint disable_scripts;
158 guint autoload_img;
159 guint autoshrink_img;
160 guint enable_spellcheck;
161 guint enable_private;
162 guint print_bg;
163 gchar* style_uri;
cb84614 @robm more WebKitWebSettings exports
robm authored
164 guint resizable_txt;
165 gchar* default_encoding;
166 guint enforce_96dpi;
5085ffd @robm added inject_html variable
robm authored
167 gchar *inject_html;
e051683 @robm added html mode
robm authored
168 guint caret_browsing;
169 guint mode;
170 gchar* base_url;
2fa43d5 @robm added user defined html_endmarker
robm authored
171 gchar* html_endmarker;
afce274 OH GOD I DON'T KNOW WHAT I AM DOING
Sylvester Johansson authored
172 gchar* insert_indicator;
173 gchar* cmd_indicator;
e051683 @robm added html mode
robm authored
174 GString* html_buffer;
965c28d @robm added html_mode_timeout and an alrm handler that returns to normal comma...
robm authored
175 guint html_timeout;
a7ffb38 @robm move globals to structs, another round.
robm authored
176
177 /* command list: name -> Command */
178 GHashTable* commands;
8f3fa4d @robm Move globals to structs, one more round. introducing struct Behaviour
robm authored
179 } Behaviour;
180
0dc558f @robm Refactored networking variables to use the new struct concept
robm authored
181
96c22d0 @anydot Move global variables into structs, first round
anydot authored
182 /* main uzbl data structure */
183 typedef struct {
8f3fa4d @robm Move globals to structs, one more round. introducing struct Behaviour
robm authored
184 GUI gui;
185 State state;
186 Network net;
187 Behaviour behave;
96c22d0 @anydot Move global variables into structs, first round
anydot authored
188 Communication comm;
8f3fa4d @robm Move globals to structs, one more round. introducing struct Behaviour
robm authored
189
190 Window xwin;
191 GScanner *scan;
9ac2796 @robm moved bindings to uzbl.bindings
robm authored
192
193 /* group bindings: key -> action */
194 GHashTable* bindings;
96c22d0 @anydot Move global variables into structs, first round
anydot authored
195 } Uzbl;
196
a7ffb38 @robm move globals to structs, another round.
robm authored
197
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
198 typedef struct {
199 char* name;
200 char* param;
201 } Action;
202
fc2bff8 @robm added signal handling and a clean_up() function
robm authored
203 typedef void sigfunc(int);
50d7e59 @Dieterbe merge robm changes: instance naming + better socket code
Dieterbe authored
204
7c0312b @barrucadu Reimplemented my changes:
barrucadu authored
205 /* XDG Stuff */
206
207 typedef struct {
208 gchar* environmental;
209 gchar* default_value;
210 } XDG_Var;
211
212 XDG_Var XDG[] =
213 {
214 { "XDG_CONFIG_HOME", "~/.config" },
215 { "XDG_DATA_HOME", "~/.local/share" },
216 { "XDG_CACHE_HOME", "~/.cache" },
217 { "XDG_CONFIG_DIRS", "/etc/xdg" },
218 { "XDG_DATA_DIRS", "/usr/local/share/:/usr/share/" },
219 };
220
5247694 @robm removed eprint() and estrdup() from uzbl.h
robm authored
221 /* Functions */
fdb283b @robm Added a statusbar parser that allows using arbitrary templates for the s...
robm authored
222 static void
223 setup_scanner();
224
50d7e59 @Dieterbe merge robm changes: instance naming + better socket code
Dieterbe authored
225 char *
226 itos(int val);
227
7c0312b @barrucadu Reimplemented my changes:
barrucadu authored
228 static char *
229 str_replace (const char* search, const char* replace, const char* string);
230
5706dd5 @barrucadu Modified read_file_by_line to return a GArray, and allow files of more t...
barrucadu authored
231 static GArray*
987d4c7 @barrucadu Added read_file_by_line() function
barrucadu authored
232 read_file_by_line (gchar *path);
233
6bc1e46 @barrucadu Added support for environmental variables in SET and BIND commands.
barrucadu authored
234 static
23df8d4 @DuClare Fix leaks in parseenv, str_replace
DuClare authored
235 gchar* parseenv (char* string);
6bc1e46 @barrucadu Added support for environmental variables in SET and BIND commands.
barrucadu authored
236
fc2bff8 @robm added signal handling and a clean_up() function
robm authored
237 static void
238 clean_up(void);
239
240 static void
241 catch_sigterm(int s);
242
243 static sigfunc *
244 setup_signal(int signe, sigfunc *shandler);
245
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
246 static gboolean
965c28d @robm added html_mode_timeout and an alrm handler that returns to normal comma...
robm authored
247 set_var_value(gchar *name, gchar *val);
248
f219ef2 @robm added print command
robm authored
249 static void
250 print(WebKitWebView *page, GArray *argv);
251
965c28d @robm added html_mode_timeout and an alrm handler that returns to normal comma...
robm authored
252 static gboolean
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
253 new_window_cb (WebKitWebView *web_view, WebKitWebFrame *frame, WebKitNetworkRequest *request, WebKitWebNavigationAction *navigation_action, WebKitWebPolicyDecision *policy_decision, gpointer user_data);
254
e91f5b5 @Dieterbe merge from Uli Schlachter: policy callback + experimental Makefile + tin...
Dieterbe authored
255 static gboolean
256 mime_policy_cb(WebKitWebView *web_view, WebKitWebFrame *frame, WebKitNetworkRequest *request, gchar *mime_type, WebKitWebPolicyDecision *policy_decision, gpointer user_data);
257
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
258 WebKitWebView*
259 create_web_view_cb (WebKitWebView *web_view, WebKitWebFrame *frame, gpointer user_data);
260
261 static gboolean
262 download_cb (WebKitWebView *web_view, GObject *download, gpointer user_data);
263
264 static void
871c102 @israellevin Added support for full content zoom (AKA full page zoom)
israellevin authored
265 toggle_zoom_type (WebKitWebView* page, GArray *argv);
266
267 static void
692b7e7 @DuClare Argv stub
DuClare authored
268 toggle_status_cb (WebKitWebView* page, GArray *argv);
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
269
270 static void
271 link_hover_cb (WebKitWebView* page, const gchar* title, const gchar* link, gpointer data);
272
273 static void
274 title_change_cb (WebKitWebView* web_view, WebKitWebFrame* web_frame, const gchar* title, gpointer data);
275
276 static void
277 progress_change_cb (WebKitWebView* page, gint progress, gpointer data);
278
279 static void
280 load_commit_cb (WebKitWebView* page, WebKitWebFrame* frame, gpointer data);
281
282 static void
c445d93 @DuClare Add load_start_handler
DuClare authored
283 load_start_cb (WebKitWebView* page, WebKitWebFrame* frame, gpointer data);
284
285 static void
702868a @DuClare Added load_finish_handler, call when a page has finished loading.
DuClare authored
286 load_finish_cb (WebKitWebView* page, WebKitWebFrame* frame, gpointer data);
287
288 static void
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
289 destroy_cb (GtkWidget* widget, gpointer data);
290
291 static void
292 log_history_cb ();
293
294 static void
295 commands_hash(void);
296
297 void
298 free_action(gpointer act);
299
300 Action*
301 new_action(const gchar *name, const gchar *param);
302
303 static bool
304 file_exists (const char * filename);
305
086501b @robm fixed control_stdin to recognize all input
robm authored
306 static void
6996b4d @barrucadu Merge branch 'experimental' of git://github.com/DuClare/uzbl into experi...
barrucadu authored
307 toggle_insert_mode(WebKitWebView *page, GArray *argv);
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
308
309 static void
692b7e7 @DuClare Argv stub
DuClare authored
310 load_uri (WebKitWebView * web_view, GArray *argv);
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
311
312 static void
313 new_window_load_uri (const gchar * uri);
314
315 static void
cbc4a4f @DuClare Add 'chain' action for binding multiple actions
DuClare authored
316 chain (WebKitWebView *page, GArray *argv);
317
318 static void
51b0c64 @DuClare Add actions keycmd and keycmd_nl
DuClare authored
319 keycmd (WebKitWebView *page, GArray *argv);
320
321 static void
322 keycmd_nl (WebKitWebView *page, GArray *argv);
323
324 static void
7b2b1b1 @DuClare Add action 'keycmd_bs' for backspacing a char
DuClare authored
325 keycmd_bs (WebKitWebView *page, GArray *argv);
326
327 static void
692b7e7 @DuClare Argv stub
DuClare authored
328 close_uzbl (WebKitWebView *page, GArray *argv);
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
329
330 static gboolean
5a9d987 @DuClare Fix spawn.sh, let run_command have n args before defaults
DuClare authored
331 run_command(const gchar *command, const guint npre,
bd6fb01 uzbl now builds on OpenBSD
Abel `00z' Camarillo authored
332 const gchar **args, const gboolean sync, char **output_stdout);
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
333
334 static void
692b7e7 @DuClare Argv stub
DuClare authored
335 spawn(WebKitWebView *web_view, GArray *argv);
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
336
337 static void
692b7e7 @DuClare Argv stub
DuClare authored
338 spawn_sh(WebKitWebView *web_view, GArray *argv);
10431d4 @DuClare Add action: sh, add var: shell_cmd
DuClare authored
339
340 static void
3b9d97b @DuClare Add (spawn|sh)_sync, make handle_cookies use run_handler
DuClare authored
341 spawn_sync(WebKitWebView *web_view, GArray *argv);
342
343 static void
344 spawn_sh_sync(WebKitWebView *web_view, GArray *argv);
345
346 static void
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
347 parse_command(const char *cmd, const char *param);
348
5171e78 @DuClare Add missing declaration, add runcmd for running bind, etc. via gui
DuClare authored
349 static void
350 parse_cmd_line(const char *ctl_line);
351
44ec739 @DuClare Rename create_socket to init_socket, refactor init_*
DuClare authored
352 static gchar*
353 build_stream_name(int type, const gchar *dir);
50d7e59 @Dieterbe merge robm changes: instance naming + better socket code
Dieterbe authored
354
4cb5e65 @robm fixed control_fifo() to return a correct status
robm authored
355 static gboolean
0536ddb @Dieterbe somewhat improved fifo code. bug still not fixed
Dieterbe authored
356 control_fifo(GIOChannel *gio, GIOCondition condition);
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
357
44ec739 @DuClare Rename create_socket to init_socket, refactor init_*
DuClare authored
358 static gchar*
359 init_fifo(gchar *dir);
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
360
06decd1 @robm first partially working command parser
robm authored
361 static gboolean
4cd06fb @Dieterbe support getting commands from stdin
Dieterbe authored
362 control_stdin(GIOChannel *gio, GIOCondition condition);
363
364 static void
365 create_stdin();
366
44ec739 @DuClare Rename create_socket to init_socket, refactor init_*
DuClare authored
367 static gchar*
368 init_socket(gchar *dir);
50d7e59 @Dieterbe merge robm changes: instance naming + better socket code
Dieterbe authored
369
5202ec3 @Dieterbe fix return for control_socket
Dieterbe authored
370 static gboolean
50d7e59 @Dieterbe merge robm changes: instance naming + better socket code
Dieterbe authored
371 control_socket(GIOChannel *chan);
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
372
373 static void
374 update_title (void);
f70df5a @damienleone clean traling whitespaces
damienleone authored
375
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
376 static gboolean
bccfaa1 @barrucadu Moved key_press_cb callback to the main window rather than webkit, to fi...
barrucadu authored
377 key_press_cb (GtkWidget* window, GdkEventKey* event);
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
378
fd4821b @DuClare Move execution from key_press_cb to its own function, run_keycmd.
DuClare authored
379 static void
380 run_keycmd(const gboolean key_ret);
381
6c11777 @DuClare Refactor run_keycmd, allow inc and normal binds with the same name
DuClare authored
382 static void
383 exec_paramcmd(const Action* act, const guint i);
384
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
385 static GtkWidget*
386 create_browser ();
387
388 static GtkWidget*
389 create_mainbar ();
390
391 static
392 GtkWidget* create_window ();
393
4f2837f @holizz Added a GtkPlug which plugs into a socket ID specified by -s.
holizz authored
394 static
395 GtkPlug* create_plug ();
396
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
397 static void
17160f7 @DuClare Remove bunches of old code, fix run_handler, free some stuff
DuClare authored
398 run_handler (const gchar *act, const gchar *args);
e291c17 @DuClare Add split_quoted, use the safer functions in run_command, break stuff
DuClare authored
399
400 static void
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
401 add_binding (const gchar *key, const gchar *act);
402
7c0312b @barrucadu Reimplemented my changes:
barrucadu authored
403 static gchar*
404 get_xdg_var (XDG_Var xdg);
405
406 static gchar*
407 find_xdg_file (int xdg_type, char* filename);
408
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
409 static void
410 settings_init ();
411
1825c5b @dusanx Search
dusanx authored
412 static void
355fa7c @DuClare Finish argv, fix sampleconfig-dev
DuClare authored
413 search_text (WebKitWebView *page, GArray *argv, const gboolean forward);
260b76c @Dieterbe cleanup after merging in from splattael
Dieterbe authored
414
415 static void
692b7e7 @DuClare Argv stub
DuClare authored
416 search_forward_text (WebKitWebView *page, GArray *argv);
fbd34b5 @splattael Search reverse. Use vim keys (n, N and /, ?).
splattael authored
417
418 static void
692b7e7 @DuClare Argv stub
DuClare authored
419 search_reverse_text (WebKitWebView *page, GArray *argv);
1825c5b @dusanx Search
dusanx authored
420
01cfcff @barrucadu Added command "script" to run javascript on the current page.
barrucadu authored
421 static void
c7a26e5 @DuClare Add action dehilight, make ESC dehilight
DuClare authored
422 dehilight (WebKitWebView *page, GArray *argv);
423
424 static void
692b7e7 @DuClare Argv stub
DuClare authored
425 run_js (WebKitWebView * web_view, GArray *argv);
01cfcff @barrucadu Added command "script" to run javascript on the current page.
barrucadu authored
426
1cfdb85 @barrucadu Renamed "script" to "js".
barrucadu authored
427 static void
6996b4d @barrucadu Merge branch 'experimental' of git://github.com/DuClare/uzbl into experi...
barrucadu authored
428 run_external_js (WebKitWebView * web_view, GArray *argv);
1cfdb85 @barrucadu Renamed "script" to "js".
barrucadu authored
429
12b0591 @age Implement saving cookies
age authored
430 static void handle_cookies (SoupSession *session,
cc614ab @robm added 'set' action
robm authored
431 SoupMessage *msg,
432 gpointer user_data);
12b0591 @age Implement saving cookies
age authored
433 static void
434 save_cookies (SoupMessage *msg,
cc614ab @robm added 'set' action
robm authored
435 gpointer user_data);
436
437 static void
438 set_var(WebKitWebView *page, GArray *argv);
439
965c28d @robm added html_mode_timeout and an alrm handler that returns to normal comma...
robm authored
440 static void
1e66be3 @DuClare Rem BIND cmd, add 'bind' action. Use parseenv in set_var & bind
DuClare authored
441 act_bind(WebKitWebView *page, GArray *argv);
442
443 static void
afce274 OH GOD I DON'T KNOW WHAT I AM DOING
Sylvester Johansson authored
444 act_dump_config();
445
446 static void
965c28d @robm added html_mode_timeout and an alrm handler that returns to normal comma...
robm authored
447 render_html();
448
449 static void
450 set_timeout(int seconds);
451
afce274 OH GOD I DON'T KNOW WHAT I AM DOING
Sylvester Johansson authored
452 static void
453 dump_var_hash(gpointer k, gpointer v, gpointer ud);
454
455 static void
456 dump_key_hash(gpointer k, gpointer v, gpointer ud);
457
458 static void
459 dump_config();
460
182cca4 @robm added callback based uzbl commands
robm authored
461
462 /* Command callbacks */
463 static void
464 cmd_load_uri();
465
466 static void
467 cmd_set_status();
468
469 static void
470 set_proxy_url();
471
472 static void
6cccec4 @Dieterbe make icon setting configurable
Dieterbe authored
473 set_icon();
474
475 static void
07c8328 @DuClare Autoprepend sync_ to sh and spawn when setting cookie hdler; update samp...
DuClare authored
476 cmd_cookie_handler();
477
478 static void
182cca4 @robm added callback based uzbl commands
robm authored
479 move_statusbar();
ef431d7 @robm converted all variable commands to the callback system, get rid of var_i...
robm authored
480
481 static void
482 cmd_always_insert_mode();
483
484 static void
485 cmd_http_debug();
486
487 static void
488 cmd_max_conns();
489
490 static void
491 cmd_max_conns_host();
492
79bc589 Replaced reset_zoom with zoom_level; added floats to commands
uranther authored
493 /* exported WebKitWebSettings properties */
494
ef431d7 @robm converted all variable commands to the callback system, get rid of var_i...
robm authored
495 static void
df1d2a4 @DuClare Shorten some lines and rename default_*_size to *_size
DuClare authored
496 cmd_font_size();
ef431d7 @robm converted all variable commands to the callback system, get rid of var_i...
robm authored
497
498 static void
79bc589 Replaced reset_zoom with zoom_level; added floats to commands
uranther authored
499 cmd_zoom_level();
500
501 static void
5aebf8f @DuClare Add var: disable_plugins
DuClare authored
502 cmd_disable_plugins();
503
504 static void
95db603 @robm export more WebKitWebSettings through the variable interface
robm authored
505 cmd_disable_scripts();
506
507 static void
ef431d7 @robm converted all variable commands to the callback system, get rid of var_i...
robm authored
508 cmd_minimum_font_size();
509
510 static void
511 cmd_fifo_dir();
512
513 static void
514 cmd_socket_dir();
515
516 static void
517 cmd_modkey();
518
519 static void
520 cmd_useragent() ;
521
95db603 @robm export more WebKitWebSettings through the variable interface
robm authored
522 static void
523 cmd_autoload_img();
524
525 static void
526 cmd_autoshrink_img();
527
528 static void
529 cmd_enable_spellcheck();
ef431d7 @robm converted all variable commands to the callback system, get rid of var_i...
robm authored
530
95db603 @robm export more WebKitWebSettings through the variable interface
robm authored
531 static void
532 cmd_enable_private();
533
534 static void
535 cmd_print_bg();
ef431d7 @robm converted all variable commands to the callback system, get rid of var_i...
robm authored
536
95db603 @robm export more WebKitWebSettings through the variable interface
robm authored
537 static void
538 cmd_style_uri();
ef431d7 @robm converted all variable commands to the callback system, get rid of var_i...
robm authored
539
cb84614 @robm more WebKitWebSettings exports
robm authored
540 static void
541 cmd_resizable_txt();
542
543 static void
544 cmd_default_encoding();
545
546 static void
547 cmd_enforce_96dpi();
548
5085ffd @robm added inject_html variable
robm authored
549 static void
550 cmd_inject_html();
ef431d7 @robm converted all variable commands to the callback system, get rid of var_i...
robm authored
551
e051683 @robm added html mode
robm authored
552 static void
553 cmd_caret_browsing();
554
8ba87ad @barrucadu Moved structs/function primitives to uzbl.h file, so we no longer need t...
barrucadu authored
555 /* vi: set et ts=4: */
Something went wrong with that request. Please try again.