changeset: 119:6024f8071703
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Wed Oct 14 16:28:00 2009 +0200
files: config.def.h surf.c
description:
changing useragent.
diff -r 3b6665e24b67 -r 6024f8071703 config.def.h
--- a/config.def.h Wed Oct 14 15:19:00 2009 +0200
+++ b/config.def.h Wed Oct 14 16:28:00 2009 +0200
@@ -1,4 +1,5 @@
/* modifier 0 means no modifier */
+static gchar *useragent = "Mozilla/5.0 (This is surf. Really! KHTML, like Gecko) Safari/531.2+";
static gchar *progress = "#FF0000";
static gchar *progress_trust = "#00FF00";
static gchar *stylefile = ".surf/style.css";
diff -r 3b6665e24b67 -r 6024f8071703 surf.c
--- a/surf.c Wed Oct 14 15:19:00 2009 +0200
+++ b/surf.c Wed Oct 14 16:28:00 2009 +0200
@@ -439,7 +439,7 @@
gdk_window_add_filter(GTK_WIDGET(c->win)->window, processx, c);
webkit_web_view_set_full_content_zoom(c->view, TRUE);
settings = webkit_web_view_get_settings(c->view);
- g_object_set(G_OBJECT(settings), "user-agent", "surf", NULL);
+ g_object_set(G_OBJECT(settings), "user-agent", useragent, NULL);
uri = g_strconcat("file://", stylefile, NULL);
g_object_set(G_OBJECT(settings), "user-stylesheet-uri", uri, NULL);
g_free(uri);
Received on Wed Oct 14 2009 - 14:25:40 UTC
This archive was generated by hypermail 2.2.0 : Wed Oct 14 2009 - 14:36:05 UTC