Unconditionally propagae modified user-agent property value

This commit is contained in:
Christian Dywan 2010-02-01 23:42:35 +01:00
parent 34bc4fa737
commit c056a21d1a

View file

@ -1518,12 +1518,11 @@ midori_web_settings_set_property (GObject* object,
break; break;
case PROP_USER_AGENT: case PROP_USER_AGENT:
if (web_settings->identify_as == MIDORI_IDENT_CUSTOM) if (web_settings->identify_as == MIDORI_IDENT_CUSTOM)
{
katze_assign (web_settings->ident_string, g_value_dup_string (value)); katze_assign (web_settings->ident_string, g_value_dup_string (value));
#if WEBKIT_CHECK_VERSION (1, 1, 11) #if WEBKIT_CHECK_VERSION (1, 1, 11)
g_object_set (web_settings, "WebKitWebSettings::user-agent", web_settings->ident_string, NULL); g_object_set (web_settings, "WebKitWebSettings::user-agent",
#endif web_settings->ident_string, NULL);
} #endif
break; break;
case PROP_PREFERRED_LANGUAGES: case PROP_PREFERRED_LANGUAGES:
katze_assign (web_settings->http_accept_language, g_value_dup_string (value)); katze_assign (web_settings->http_accept_language, g_value_dup_string (value));