[libsoup] SoupSession: fix a bug with the add-feature-by-type property
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] SoupSession: fix a bug with the add-feature-by-type property
- Date: Thu, 7 Feb 2013 21:21:44 +0000 (UTC)
commit d2c32e501165544b4afda9813c714b3a7a55cb33
Author: Dan Winship <danw gnome org>
Date: Thu Feb 7 14:14:47 2013 -0500
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.
libsoup/soup-session.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]