From 25e773a380ea4f04602f7ebe4be4bebc87b00f52 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 1 Aug 2009 23:24:32 +0200 Subject: [PATCH] Update the user-agent value of WebKitGTK+ since 1.1.11 --- midori/midori-websettings.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c index 9b0aba94..651ac9dc 100644 --- a/midori/midori-websettings.c +++ b/midori/midori-websettings.c @@ -1323,12 +1323,20 @@ midori_web_settings_set_property (GObject* object, { gchar* string = generate_ident_string (web_settings->identify_as); katze_assign (web_settings->ident_string, string); + #if WEBKIT_CHECK_VERSION (1, 1, 11) + g_object_set (web_settings, "user-agent", string, NULL); + #endif g_object_notify (object, "ident-string"); } break; case PROP_IDENT_STRING: if (web_settings->identify_as == MIDORI_IDENT_CUSTOM) + { katze_assign (web_settings->ident_string, g_value_dup_string (value)); + #if WEBKIT_CHECK_VERSION (1, 1, 11) + g_object_set (web_settings, "user-agent", web_settings->ident_string, NULL); + #endif + } break; case PROP_CACHE_SIZE: web_settings->cache_size = g_value_get_int (value); -- 2.39.5