summaryrefslogtreecommitdiff
path: root/gtk/gtk_gui.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2006-07-15 11:59:25 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2006-07-15 11:59:25 +0000
commit4c564c28bfa6af46e64efa5f23311c082c7108be (patch)
treef390b54b572dbe6c622ddbca0aa968b58befba96 /gtk/gtk_gui.c
parent001cf8aa33f4f2c1360d63389630fccf596ef4ad (diff)
downloadnetsurf-4c564c28bfa6af46e64efa5f23311c082c7108be.tar.gz
netsurf-4c564c28bfa6af46e64efa5f23311c082c7108be.tar.bz2
Display session cookies' expiry correctly
Fix urldb debug build Fix GTK build's cookie_update API svn path=/trunk/netsurf/; revision=2752
Diffstat (limited to 'gtk/gtk_gui.c')
-rw-r--r--gtk/gtk_gui.c26
1 files changed, 14 insertions, 12 deletions
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;
}