]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-irc-network.c
individual-menu: remove link-contacts-activated signal
[empathy.git] / libempathy / empathy-irc-network.c
index d5b0bdcb99e5de3cd574b3b97b41989ca482857f..ec0cfffb1e0abd8c05b44b40afc8e8e3e94bd26b 100644 (file)
@@ -27,7 +27,6 @@
 
 #include <telepathy-glib/util.h>
 
-#include "empathy-marshal.h"
 #include "empathy-irc-network.h"
 #include "empathy-utils.h"
 
@@ -206,7 +205,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 (
@@ -215,10 +215,28 @@ empathy_irc_network_class_init (EmpathyIrcNetworkClass *klass)
       G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
       0,
       NULL, NULL,
-      g_cclosure_marshal_VOID__VOID,
+      g_cclosure_marshal_generic,
       G_TYPE_NONE, 0);
 }
 
+/**
+ * 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