From 4c564c28bfa6af46e64efa5f23311c082c7108be Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 15 Jul 2006 11:59:25 +0000 Subject: Display session cookies' expiry correctly Fix urldb debug build Fix GTK build's cookie_update API svn path=/trunk/netsurf/; revision=2752 --- gtk/gtk_gui.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'gtk') diff --git a/gtk/gtk_gui.c b/gtk/gtk_gui.c index 868adb380..496bd278b 100644 --- a/gtk/gtk_gui.c +++ b/gtk/gtk_gui.c @@ -21,6 +21,7 @@ #include "netsurf/content/urldb.h" #include "netsurf/desktop/401login.h" #include "netsurf/desktop/browser.h" +#include "netsurf/desktop/cookies.h" #include "netsurf/desktop/gui.h" #include "netsurf/desktop/netsurf.h" #include "netsurf/desktop/options.h" @@ -30,6 +31,7 @@ #include "netsurf/render/html.h" #include "netsurf/utils/log.h" #include "netsurf/utils/messages.h" +#include "netsurf/utils/url.h" #include "netsurf/utils/utf8.h" #include "netsurf/utils/utils.h" @@ -87,16 +89,6 @@ static char *find_resource(char *buf, const char *filename, const char *def) return buf; } -static char *path_to_url(const char *path) -{ - char *r = malloc(strlen(path) + 7 + 1); - - strcpy(r, "file://"); - strcat(r, path); - - return r; -} - void gui_init(int argc, char** argv) { char buf[PATH_MAX]; @@ -321,12 +313,22 @@ utf8_convert_ret utf8_from_local_encoding(const char *string, size_t len, return UTF8_CONVERT_OK; } +char *path_to_url(const char *path) +{ + char *r = malloc(strlen(path) + 7 + 1); + + strcpy(r, "file://"); + strcat(r, path); + + return r; +} + char *url_to_path(const char *url) { return strdup(url + 5); } -bool cookies_update(const char *domain, const struct cookie_data *data) +bool cookies_update(const struct cookie_data *data) { - return true; + return true; } -- cgit v1.2.3