~ubuntu-branches/ubuntu/gutsy/gossip-telepathy/gutsy

« back to all changes in this revision

Viewing changes to protocols/telepathy/gossip-telepathy-chatrooms.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-01-26 09:27:52 UTC
  • mfrom: (1.1.24 upstream)
  • Revision ID: james.westby@ubuntu.com-20070126092752-x71rmmctr9d04xeq
Tags: 0.23~svn20070126-0ubuntu1
New SVN checkout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <libtelepathy/tp-constants.h>
29
29
 
30
30
#include <libgossip/gossip-debug.h>
31
 
#include <libgossip/gossip-chatroom-contact.h>
 
31
#include <libgossip/gossip-contact.h>
32
32
 
33
33
#include "gossip-telepathy-chatrooms.h"
34
34
#include "gossip-telepathy-group.h"
518
518
                                                                 members);
519
519
 
520
520
        for (l = added_list; l; l = l->next) {
521
 
                GossipChatroomContact *contact;
522
 
 
523
 
                contact = l->data;
524
 
                gossip_chatroom_contact_set_role (contact,
525
 
                                                  GOSSIP_CHATROOM_ROLE_PARTICIPANT);
526
 
                gossip_chatroom_contact_set_affiliation (contact,
527
 
                                                         GOSSIP_CHATROOM_AFFILIATION_MEMBER);
528
 
 
529
 
                g_signal_emit_by_name (room->telepathy, "chatroom-contact-joined",
530
 
                                       gossip_chatroom_get_id (room->chatroom),
531
 
                                       GOSSIP_CONTACT (contact));
 
521
                gossip_chatroom_contact_joined (room->chatroom, l->data, NULL);
532
522
        }
533
523
 
534
524
        g_list_free (added_list);
554
544
                contact = gossip_telepathy_contacts_get_from_handle (contacts,
555
545
                                                                     handle);
556
546
 
557
 
                g_signal_emit_by_name (room->telepathy, "chatroom-contact-left",
558
 
                                       gossip_chatroom_get_id (room->chatroom),
559
 
                                       contact);
 
547
                gossip_chatroom_contact_left (room->chatroom, contact);
560
548
        }
561
549
}
562
550