GParamSpec* pspec,
SoupSession* session)
{
- gchar* ident_string = katze_object_get_string (settings, "ident-string");
+ gchar* ident_string = katze_object_get_string (settings, "user-agent");
g_object_set (session, "user-agent", ident_string, NULL);
g_free (ident_string);
}
#if !WEBKIT_CHECK_VERSION (1, 1, 11)
soup_session_settings_notify_ident_string_cb (settings, NULL, session);
- g_signal_connect (settings, "notify::ident-string",
+ g_signal_connect (settings, "notify::user-agent",
G_CALLBACK (soup_session_settings_notify_ident_string_cb), session);
#endif
#endif
label = katze_property_label (settings, "identify-as");
INDENTED_ADD (label);
- button = katze_property_proxy (settings, "identify-as", "custom-ident-string");
+ button = katze_property_proxy (settings, "identify-as", "custom-user-agent");
SPANNED_ADD (button);
label = katze_property_label (settings, "preferred-languages");
INDENTED_ADD (label);
{
gchar** argument_vector = sokoke_get_argv (NULL);
gchar* command_line = g_strjoinv (" ", argument_vector);
- gchar* ident = katze_object_get_string (view->settings, "ident-string");
+ gchar* ident = katze_object_get_string (view->settings, "user-agent");
#if defined (G_OS_WIN32)
gchar* sys_name = g_strdup ("Windows");
#else
PROP_HTTP_PROXY,
PROP_AUTO_DETECT_PROXY,
PROP_IDENTIFY_AS,
- PROP_IDENT_STRING,
+ PROP_USER_AGENT,
PROP_PREFERRED_LANGUAGES,
PROP_CLEAR_PRIVATE_DATA
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * MidoriWebSettings:ident-string:
- *
- * The browser identification string.
- *
- * Since: 0.1.2
- */
+ * MidoriWebSettings:user-agent:
+ *
+ * The browser identification string.
+ *
+ * Since: 0.2.3
+ */
g_object_class_install_property (gobject_class,
- PROP_IDENT_STRING,
+ PROP_USER_AGENT,
g_param_spec_string (
- "ident-string",
+ "user-agent",
_("Identification string"),
_("The application identification string"),
NULL,
katze_assign (web_settings->ident_string, string);
#if WEBKIT_CHECK_VERSION (1, 1, 11)
g_object_set (web_settings, "user-agent", string, NULL);
+ #else
+ g_object_notify (object, "user-agent");
#endif
- g_object_notify (object, "ident-string");
}
break;
- case PROP_IDENT_STRING:
+ case PROP_USER_AGENT:
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);
+ g_object_set (web_settings, "WebKitWebSettings::user-agent", web_settings->ident_string, NULL);
#endif
}
break;
case PROP_IDENTIFY_AS:
g_value_set_enum (value, web_settings->identify_as);
break;
- case PROP_IDENT_STRING:
+ case PROP_USER_AGENT:
if (!g_strcmp0 (web_settings->ident_string, ""))
{
gchar* string = generate_ident_string (web_settings->identify_as);