summaryrefslogtreecommitdiffstats
path: root/surf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--surf.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/surf.c b/surf.c
index c0debf0..3ff8af7 100644
--- a/surf.c
+++ b/surf.c
@@ -71,7 +71,6 @@ extern char *optarg;
extern gint optind;
static void cleanup(void);
-static void proccookies(SoupMessage *m, Client *c);
static void clipboard(Client *c, const Arg *arg);
static void destroyclient(Client *c);
static void destroywin(GtkWidget* w, Client *c);
@@ -95,6 +94,7 @@ static WebKitWebView *newwindow(WebKitWebView *v, WebKitWebFrame *f, Client *c)
static void pasteurl(GtkClipboard *clipboard, const gchar *text, gpointer d);
static GdkFilterReturn processx(GdkXEvent *xevent, GdkEvent *event, gpointer d);
static void print(Client *c, const Arg *arg);
+static void proccookies(SoupMessage *m, Client *c);
static void progresschange(WebKitWebView *view, gint p, Client *c);
static void request(SoupSession *s, SoupMessage *m, Client *c);
static void reload(Client *c, const Arg *arg);
@@ -122,21 +122,6 @@ cleanup(void) {
}
void
-proccookies(SoupMessage *m, Client *c) {
- GSList *l;
- SoupCookie *co;
- long t;
-
- rereadcookies();
- for (l = soup_cookies_from_response(m); l; l = l->next){
- co = (SoupCookie *)l->data;
- t = co->expires ? soup_date_to_time_t(co->expires) : 0;
- setcookie(co->name, co->value, co->domain, co->value, t);
- }
- g_slist_free(l);
-}
-
-void
clipboard(Client *c, const Arg *arg) {
gboolean paste = *(gboolean *)arg;
if(paste)
@@ -501,6 +486,21 @@ print(Client *c, const Arg *arg) {
}
void
+proccookies(SoupMessage *m, Client *c) {
+ GSList *l;
+ SoupCookie *co;
+ long t;
+
+ rereadcookies();
+ for (l = soup_cookies_from_response(m); l; l = l->next){
+ co = (SoupCookie *)l->data;
+ t = co->expires ? soup_date_to_time_t(co->expires) : 0;
+ setcookie(co->name, co->value, co->domain, co->value, t);
+ }
+ g_slist_free(l);
+}
+
+void
progresschange(WebKitWebView* view, gint p, Client *c) {
c->progress = p;
update(c, NULL);
/surf/commit/surf.c?id=4dbf90e0d7846bfdfa93564b6ec85068367f2008&follow=1'>using gint instead of int (insane API, but ok.)Gravatar Enno Boland (tox) 1-19/+12 2009-09-07using simple strings for colors in config.hGravatar Enno Boland (tox) 2-6/+6 2009-09-07changing keybindingsGravatar Enno Boland (tox) 1-16/+15 2009-09-07changing minimal size.Gravatar Enno Boland (tox) 1-1/+1 2009-09-07next version is 0.1Gravatar Enno Boland (tox) 1-1/+1 2009-09-07moving config.h to config.def.h.Gravatar Enno Boland (tox) 2-11/+15 2009-09-07moving color definitions to config.hGravatar Enno Boland (tox) 2-4/+5 2009-09-07indicator is red when http and green when httpsGravatar Enno Boland (tox) 1-1/+15 2009-09-07making indicator smaller.Gravatar Enno Boland (tox) 1-1/+1 2009-09-07typoGravatar Enno Boland (tox) 1-2/+2 2009-09-07adding indicator bar.Gravatar Enno Boland (tox) 1-11/+46 2009-09-07s/zoompage/zoom/Gravatar Enno Boland (tox) 2-5/+6 2009-09-07typo fixGravatar Enno Boland (tox) 1-1/+1 2009-09-07changes to the event system, make config.h saner, working on cookiesGravatar Enno Boland (tox) 2-96/+63 2009-09-06typofixGravatar Enno Boland (tox) 1-1/+1 2009-09-06reworked navigate.Gravatar Enno Boland (tox) 2-7/+4 2009-09-06reworked navigate.Gravatar Enno Boland (tox) 2-7/+4 2009-09-06reappling printing; changing some keys.Gravatar Enno Boland (tox) 2-3/+10