Remove construct-only flag from MatrixHTTPAPI:base-url

Documentation also added that all tokens get reset when changing it.
This commit is contained in:
Gergely Polonkai 2016-01-13 08:20:40 +01:00
parent 6736322562
commit 374831f01d

View File

@ -291,12 +291,15 @@ matrix_http_api_class_init(MatrixHTTPAPIClass *klass)
* The base URL to use for communication with the Matrix.org * The base URL to use for communication with the Matrix.org
* server. If the URL doesnt end with the correct API endpoint * server. If the URL doesnt end with the correct API endpoint
* (/_matrix/client/api/v1), it gets appended automatically. * (/_matrix/client/api/v1), it gets appended automatically.
*
* Changing the base URL automatically clears all authorization
* tokens.
*/ */
obj_properties[PROP_BASE_URL] = g_param_spec_string( obj_properties[PROP_BASE_URL] = g_param_spec_string(
"base-url", "Server's base URL", "base-url", "Server's base URL",
"Matrix.org home server to connect to.", "Matrix.org home server to connect to.",
NULL, NULL,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property(gobject_class, g_object_class_install_property(gobject_class,
PROP_BASE_URL, PROP_BASE_URL,
obj_properties[PROP_BASE_URL]); obj_properties[PROP_BASE_URL]);