changeset: 103:e0565db32ec1
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Sun Sep 13 16:15:28 2009 +0200
files: surf.c
description:
usercss works again.
diff -r 4ba95bdee123 -r e0565db32ec1 surf.c
--- a/surf.c Fri Sep 11 09:39:43 2009 +0200
+++ b/surf.c Sun Sep 13 16:15:28 2009 +0200
@@ -60,14 +60,14 @@
KeyFocus focus;
} Key;
-SoupCookieJar *cookiejar;
-SoupSession *session;
-Client *clients = NULL;
-Cookie *cookies = NULL;
-GdkNativeWindow embed = 0;
-gboolean showxid = FALSE;
-gboolean ignore_once = FALSE;
-gchar *workdir;
+static SoupCookieJar *cookiejar;
+static SoupSession *session;
+static Client *clients = NULL;
+/*static Cookie *cookies = NULL;*/
+static GdkNativeWindow embed = 0;
+static gboolean showxid = FALSE;
+static gboolean ignore_once = FALSE;
+static gchar *workdir;
extern char *optarg;
extern gint optind;
@@ -123,6 +123,7 @@
cleanup(void) {
while(clients)
destroyclient(clients);
+ g_free(workdir);
}
void
@@ -590,7 +591,7 @@
/* create dirs and files */
home = g_get_home_dir();
- workdir = g_build_filename(home, ".surf", NULL);
+ workdir = g_strdup(g_build_filename(home, ".surf", NULL));
g_mkdir_with_parents(workdir, 0755);
name = g_build_filename(workdir, "dl", NULL);
g_mkdir(name, 0755);
@@ -720,6 +721,7 @@
default:
usage();
}
+ setup();
if(optind + 1 == argc) {
c = newclient();
arg.v = argv[optind];
@@ -731,7 +733,6 @@
}
else if(optind != argc)
usage();
- setup();
if(!clients)
newclient();
Received on Sun Sep 13 2009 - 14:13:51 UTC
This archive was generated by hypermail 2.2.0 : Sun Sep 13 2009 - 14:24:05 UTC