~ubuntu-branches/ubuntu/maverick/telepathy-glib/maverick

« back to all changes in this revision

Viewing changes to examples/cm/echo/chan.c

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2010-05-10 17:59:54 UTC
  • mfrom: (1.6.1 upstream) (27.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100510175954-bxvqq3xx0sy4itmp
Tags: 0.11.5-1
New upstream version with new API/ABI

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
  ExampleEchoChannel *self = EXAMPLE_ECHO_CHANNEL (object);
88
88
  TpHandleRepoIface *contact_repo = tp_base_connection_get_handles
89
89
      (self->priv->conn, TP_HANDLE_TYPE_CONTACT);
90
 
  DBusGConnection *bus;
91
90
 
92
91
  tp_handle_ref (contact_repo, self->priv->handle);
93
92
 
94
93
  if (self->priv->initiator != 0)
95
94
    tp_handle_ref (contact_repo, self->priv->initiator);
96
95
 
97
 
  bus = tp_get_bus ();
98
 
  dbus_g_connection_register_g_object (bus, self->priv->object_path, object);
 
96
  tp_dbus_daemon_register_object (
 
97
      tp_base_connection_get_dbus_daemon (self->priv->conn),
 
98
      self->priv->object_path, self);
99
99
 
100
100
  tp_text_mixin_init (object, G_STRUCT_OFFSET (ExampleEchoChannel, text),
101
101
      contact_repo);