summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2012-05-10 18:35:01 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2012-05-10 18:35:01 +0100
commitf28758a1337c3ad948845b4b03629afaebb9b894 (patch)
treebdbeddf86d5ce82f461cdcf1edc1a8144ce18a71
parent8e87e0eeabeefb59ac6f0869dda86320f035bdd7 (diff)
downloadtelepathy-glib-f28758a1337c3ad948845b4b03629afaebb9b894.tar.gz
channel-manager: deprecate emit_new_channels
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=47942 Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--telepathy-glib/channel-manager.c17
-rw-r--r--telepathy-glib/channel-manager.h2
2 files changed, 17 insertions, 2 deletions
diff --git a/telepathy-glib/channel-manager.c b/telepathy-glib/channel-manager.c
index 56fca962a..da24493f9 100644
--- a/telepathy-glib/channel-manager.c
+++ b/telepathy-glib/channel-manager.c
@@ -237,6 +237,13 @@ channel_manager_base_init (gpointer klass)
* generally emit NewChannels (and NewChannel) in response to this
* signal, and then return from pending CreateChannel, EnsureChannel
* and/or RequestChannel calls if appropriate.
+ *
+ * Since 0.UNRELEASED, clients should not emit more than one
+ * channel in this signal at one time as the creation of
+ * multiple channels together in a single signal is strongly
+ * recommended against: it's very complicated, hard to get
+ * right in clients, and not nearly as useful as it originally
+ * sounded.
*/
signals[S_NEW_CHANNELS] = g_signal_new ("new-channels",
G_OBJECT_CLASS_TYPE (klass),
@@ -349,6 +356,13 @@ tp_channel_manager_get_type (void)
* If @channels is non-empty, emit the #TpChannelManager::new-channels
* signal indicating that those channels have been created.
*
+ * Deprecated: in 0.UNRELEASED this function should not be
+ * used. Signalling the creation of multiple channels together in a
+ * single signal is strongly recommended against as it's very
+ * complicated, hard to get right in clients, and not nearly as
+ * useful as it originally sounded. Use
+ * tp_channel_manager_emit_new_channel() instead.
+ *
* Since: 0.7.15
*/
void
@@ -372,8 +386,7 @@ tp_channel_manager_emit_new_channels (gpointer instance,
* channel
*
* Emit the #TpChannelManager::new-channels signal indicating that the
- * channel has been created. (This is a convenient shortcut for calling
- * tp_channel_manager_emit_new_channels() with a one-entry hash table.)
+ * channel has been created.
*
* Since: 0.7.15
*/
diff --git a/telepathy-glib/channel-manager.h b/telepathy-glib/channel-manager.h
index 777a2ea23..47e0aa624 100644
--- a/telepathy-glib/channel-manager.h
+++ b/telepathy-glib/channel-manager.h
@@ -129,6 +129,8 @@ GType tp_channel_manager_get_type (void);
void tp_channel_manager_emit_new_channel (gpointer instance,
TpExportableChannel *channel, GSList *request_tokens);
+
+_TP_DEPRECATED_IN_UNRELEASED
void tp_channel_manager_emit_new_channels (gpointer instance,
GHashTable *channels);