]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-contact-list.c
account-settings: allow to change the service
[empathy.git] / libempathy / empathy-contact-list.c
index 1fe894e99619bf21689489b4f05f62c3903f1688..b80071c533d1efedcdcc7aaed5d7b09f6ec1d9d8 100644 (file)
@@ -22,7 +22,6 @@
 #include "config.h"
 
 #include "empathy-contact-list.h"
-#include "empathy-marshal.h"
 
 static void contact_list_base_init (gpointer klass);
 
@@ -54,12 +53,21 @@ contact_list_base_init (gpointer klass)
        static gboolean initialized = FALSE;
 
        if (!initialized) {
+               g_signal_new ("member-renamed",
+                             G_TYPE_FROM_CLASS (klass),
+                             G_SIGNAL_RUN_LAST,
+                             0,
+                             NULL, NULL,
+                             g_cclosure_marshal_generic,
+                             G_TYPE_NONE,
+                             4, EMPATHY_TYPE_CONTACT, EMPATHY_TYPE_CONTACT, G_TYPE_UINT, G_TYPE_STRING);
+
                g_signal_new ("members-changed",
                              G_TYPE_FROM_CLASS (klass),
                              G_SIGNAL_RUN_LAST,
                              0,
                              NULL, NULL,
-                             _empathy_marshal_VOID__OBJECT_OBJECT_UINT_STRING_BOOLEAN,
+                             g_cclosure_marshal_generic,
                              G_TYPE_NONE,
                              5, EMPATHY_TYPE_CONTACT, EMPATHY_TYPE_CONTACT,
                              G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
@@ -69,7 +77,7 @@ contact_list_base_init (gpointer klass)
                              G_SIGNAL_RUN_LAST,
                              0,
                              NULL, NULL,
-                             _empathy_marshal_VOID__OBJECT_OBJECT_UINT_STRING_BOOLEAN,
+                             g_cclosure_marshal_generic,
                              G_TYPE_NONE,
                              5, EMPATHY_TYPE_CONTACT, EMPATHY_TYPE_CONTACT,
                              G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
@@ -79,7 +87,7 @@ contact_list_base_init (gpointer klass)
                              G_SIGNAL_RUN_LAST,
                              0,
                              NULL, NULL,
-                             _empathy_marshal_VOID__OBJECT_STRING_BOOLEAN,
+                             g_cclosure_marshal_generic,
                              G_TYPE_NONE,
                              3, EMPATHY_TYPE_CONTACT, G_TYPE_STRING, G_TYPE_BOOLEAN);
 
@@ -125,18 +133,6 @@ empathy_contact_list_get_members (EmpathyContactList *list)
        return NULL;
 }
 
-EmpathyContactMonitor *
-empathy_contact_list_get_monitor (EmpathyContactList *list)
-{
-       g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST (list), NULL);
-
-       if (EMPATHY_CONTACT_LIST_GET_IFACE (list)->get_monitor) {
-               return EMPATHY_CONTACT_LIST_GET_IFACE (list)->get_monitor (list);
-       }
-
-       return NULL;
-}
-
 GList *
 empathy_contact_list_get_pendings (EmpathyContactList *list)
 {
@@ -149,18 +145,6 @@ empathy_contact_list_get_pendings (EmpathyContactList *list)
        return NULL;
 }
 
-GList *
-empathy_contact_list_get_all_groups (EmpathyContactList *list)
-{
-       g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST (list), NULL);
-
-       if (EMPATHY_CONTACT_LIST_GET_IFACE (list)->get_all_groups) {
-               return EMPATHY_CONTACT_LIST_GET_IFACE (list)->get_all_groups (list);
-       }
-
-       return NULL;
-}
-
 GList *
 empathy_contact_list_get_groups (EmpathyContactList *list,
                                 EmpathyContact     *contact)
@@ -228,4 +212,3 @@ empathy_contact_list_remove_group (EmpathyContactList *list,
                EMPATHY_CONTACT_LIST_GET_IFACE (list)->remove_group (list, group);
        }
 }
-