From: Dan Winship Date: Thu, 7 Feb 2013 19:14:47 +0000 (-0500) Subject: SoupSession: fix a bug with the add-feature-by-type property X-Git-Tag: 2.41.90~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2c32e501165544b4afda9813c714b3a7a55cb33;p=platform%2Fupstream%2Flibsoup.git SoupSession: fix a bug with the add-feature-by-type property The add-feature-by-type and remove-feature-by-type properties were only accepting SoupSessionFeature types, so you couldn't use it for things like request types, auth types, etc. --- diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c index b2f7614..c50faa2 100644 --- a/libsoup/soup-session.c +++ b/libsoup/soup-session.c @@ -3429,7 +3429,7 @@ soup_session_class_init (SoupSessionClass *session_class) g_param_spec_gtype (SOUP_SESSION_ADD_FEATURE_BY_TYPE, "Add Feature By Type", "Add a feature object of the given type to the session", - SOUP_TYPE_SESSION_FEATURE, + G_TYPE_OBJECT, G_PARAM_READWRITE)); /** * SoupSession:remove-feature-by-type: (skip) @@ -3452,7 +3452,7 @@ soup_session_class_init (SoupSessionClass *session_class) g_param_spec_gtype (SOUP_SESSION_REMOVE_FEATURE_BY_TYPE, "Remove Feature By Type", "Remove features of the given type from the session", - SOUP_TYPE_SESSION_FEATURE, + G_TYPE_OBJECT, G_PARAM_READWRITE)); /** * SoupSession:http-aliases: