~ubuntu-branches/ubuntu/feisty/gossip-telepathy/feisty

« back to all changes in this revision

Viewing changes to src/gossip-notify.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-12-20 15:09:43 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20061220150943-01hnkptgzfvw5d6e
Tags: 0.21~cvs20061220-0ubuntu1
* New CVS checkout.
* debian/control: Build-Depend on libtelepathy-dev (>= 0.0.40-0ubuntu2).

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
static void                notify_contact_removed_cb              (GossipSession      *session,
82
82
                                                                   GossipContact      *contact,
83
83
                                                                   gpointer            user_data);
 
84
static void                notify_contact_remove                  (GossipContact      *contact);
84
85
static gboolean            notify_subscription_request_show_cb    (GossipContact      *contact);
85
86
static void                notify_event_added_cb                  (GossipEventManager *event_manager,
86
87
                                                                   GossipEvent        *event,
553
554
        id = g_timeout_add (NOTIFY_WAIT_TIME,
554
555
                            (GSourceFunc) notify_protocol_timeout_cb,
555
556
                            account);
556
 
        g_hash_table_insert (account_states, account, GUINT_TO_POINTER (id));
 
557
        g_hash_table_insert (account_states, g_object_ref (account),
 
558
                             GUINT_TO_POINTER (id));
557
559
}
558
560
 
559
561
static void
615
617
                           GossipContact *contact,
616
618
                           gpointer       user_data)
617
619
{
 
620
        g_hash_table_remove (contact_states, contact);
 
621
}
 
622
 
 
623
static void
 
624
notify_contact_remove (GossipContact *contact)
 
625
{
618
626
        g_signal_handlers_disconnect_by_func (contact,
619
627
                                              notify_contact_presence_updated_cb,
620
628
                                              NULL);
 
629
        g_object_unref (contact);
621
630
}
622
631
 
623
632
static gboolean
835
844
 
836
845
        contact_states = g_hash_table_new_full (gossip_contact_hash,
837
846
                                                gossip_contact_equal,
838
 
                                                (GDestroyNotify) g_object_unref,
 
847
                                                (GDestroyNotify) notify_contact_remove,
839
848
                                                (GDestroyNotify) g_object_unref);
840
849
 
841
850
        g_signal_connect (session, "protocol-connected",