diff options
author | Paweł Zuzelski <pawelz@pld-linux.org> | 2010-01-10 02:39:50 +0100 |
---|---|---|
committer | Paweł Zuzelski <pawelz@pld-linux.org> | 2010-01-10 02:39:50 +0100 |
commit | e1806cf413fbafa7dfef273ca4ced37e1918d080 (patch) | |
tree | dcbf0767fad00bd02c1b48791184890834988aca /src/callbacks.c | |
parent | 91e081938617e24dea672949c58b8dbad8d19630 (diff) |
authentication_handler implementaion
Authentication handler allows to delegate http authentication to external
program. It introduces one new configuration variable: authentication_handler.
Note that this commit does not affect uzbl behaviour unless this variable is
set. Also updated README documentation, default config and added example
authentication script.
Diffstat (limited to 'src/callbacks.c')
-rw-r--r-- | src/callbacks.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/callbacks.c b/src/callbacks.c index dab92c1..b2f05cf 100644 --- a/src/callbacks.c +++ b/src/callbacks.c @@ -27,6 +27,17 @@ set_proxy_url() { } void +set_authentication_handler() { + if (uzbl.behave.authentication_handler) + soup_session_remove_feature_by_type + (uzbl.net.soup_session, (GType) WEBKIT_TYPE_SOUP_AUTH_DIALOG); + else + soup_session_add_feature_by_type + (uzbl.net.soup_session, (GType) WEBKIT_TYPE_SOUP_AUTH_DIALOG); + return; +} + +void set_icon() { if(file_exists(uzbl.gui.icon)) { if (uzbl.gui.main_window) |