aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-irc-network.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-irc-network.c')
-rw-r--r--libempathy/empathy-irc-network.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/libempathy/empathy-irc-network.c b/libempathy/empathy-irc-network.c
index d5b0bdcb9..68e071be8 100644
--- a/libempathy/empathy-irc-network.c
+++ b/libempathy/empathy-irc-network.c
@@ -206,7 +206,8 @@ empathy_irc_network_class_init (EmpathyIrcNetworkClass *klass)
* EmpathyIrcNetwork::modified:
* @network: the object that received the signal
*
- * Emitted when either a property or a server of the network is modified.
+ * Emitted when either a property or a server of the network is modified or
+ * when a network is activated.
*
*/
signals[MODIFIED] = g_signal_new (
@@ -220,6 +221,24 @@ empathy_irc_network_class_init (EmpathyIrcNetworkClass *klass)
}
/**
+ * empathy_irc_network_activate:
+ * @self: the name of the network
+ *
+ * Activates a #EmpathyIrcNetwork.
+ *
+ */
+void
+empathy_irc_network_activate (EmpathyIrcNetwork *self)
+{
+ g_return_if_fail (EMPATHY_IS_IRC_NETWORK (self));
+ g_return_if_fail (self->dropped);
+
+ self->dropped = FALSE;
+
+ g_signal_emit (self, signals[MODIFIED], 0);
+}
+
+/**
* empathy_irc_network_new:
* @name: the name of the network
*