libsoup/libsoup-2.29.3-introspectability.patch

48 lines
1.5 KiB
Diff
Raw Normal View History

From b304a99ddebbb14b231c4b288e303b3088d7041e Mon Sep 17 00:00:00 2001
From: Vincent Untz <vuntz@gnome.org>
Date: Thu, 3 Dec 2009 15:35:58 +0100
Subject: [PATCH] Make connection-created and tunneling of SoupSession use a GObject
The connection-created and tunneling signals added to SoupSession in commit
6ff7ecdd were using SoupConnection, and this made SoupConnection
semi-public (gir-repository failed to build because it didn't know about
it, for example).
Since SoupConnection is intended to be private, use a GObject for the
signal parameter.
https://bugzilla.gnome.org/show_bug.cgi?id=603696
---
libsoup/soup-session.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index c4d3044..547db9f 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -390,7 +390,9 @@ soup_session_class_init (SoupSessionClass *session_class)
NULL, NULL,
soup_marshal_NONE__OBJECT,
G_TYPE_NONE, 1,
- SOUP_TYPE_CONNECTION);
+ /* SoupConnection is public, so we can't use
+ * SOUP_TYPE_CONNECTION here */
+ G_TYPE_OBJECT);
signals[TUNNELING] =
g_signal_new ("tunneling",
@@ -400,7 +402,9 @@ soup_session_class_init (SoupSessionClass *session_class)
NULL, NULL,
soup_marshal_NONE__OBJECT,
G_TYPE_NONE, 1,
- SOUP_TYPE_CONNECTION);
+ /* SoupConnection is public, so we can't use
+ * SOUP_TYPE_CONNECTION here */
+ G_TYPE_OBJECT);
/* properties */
--
1.6.5.2