aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-05-23 22:16:38 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:53:23 +0800
commit55a8adfe1d7856c5736cefc860e050223795a48d (patch)
tree06bdca4b93c5156a4f091e15a1c609214617baee /libempathy
parent50e5710f5d7650ee5cd7c9ffc949457675e5a459 (diff)
downloadgsoc2013-empathy-55a8adfe1d7856c5736cefc860e050223795a48d.tar
gsoc2013-empathy-55a8adfe1d7856c5736cefc860e050223795a48d.tar.gz
gsoc2013-empathy-55a8adfe1d7856c5736cefc860e050223795a48d.tar.bz2
gsoc2013-empathy-55a8adfe1d7856c5736cefc860e050223795a48d.tar.lz
gsoc2013-empathy-55a8adfe1d7856c5736cefc860e050223795a48d.tar.xz
gsoc2013-empathy-55a8adfe1d7856c5736cefc860e050223795a48d.tar.zst
gsoc2013-empathy-55a8adfe1d7856c5736cefc860e050223795a48d.zip
Use _constructed instead of _constructor
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-file.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c
index bf9a6da20..30f3da05f 100644
--- a/libempathy/empathy-tp-file.c
+++ b/libempathy/empathy-tp-file.c
@@ -644,40 +644,33 @@ do_set_property (GObject *object,
};
}
-static GObject *
-do_constructor (GType type,
- guint n_props,
- GObjectConstructParam *props)
+static void
+do_constructed (GObject *object)
{
- GObject *file_obj;
EmpathyTpFile *tp_file;
EmpathyTpFilePriv *priv;
- file_obj = G_OBJECT_CLASS (empathy_tp_file_parent_class)->constructor (type,
- n_props, props);
-
- tp_file = EMPATHY_TP_FILE (file_obj);
+ tp_file = EMPATHY_TP_FILE (object);
priv = GET_PRIV (tp_file);
g_signal_connect (priv->channel, "invalidated",
G_CALLBACK (tp_file_invalidated_cb), tp_file);
tp_cli_channel_type_file_transfer_connect_to_file_transfer_state_changed (
- priv->channel, tp_file_state_changed_cb, NULL, NULL,
- G_OBJECT (tp_file), NULL);
+ priv->channel, tp_file_state_changed_cb, NULL, NULL, object, NULL);
tp_cli_channel_type_file_transfer_connect_to_transferred_bytes_changed (
priv->channel, tp_file_transferred_bytes_changed_cb,
- NULL, NULL, G_OBJECT (tp_file), NULL);
+ NULL, NULL, object, NULL);
tp_cli_dbus_properties_call_get (priv->channel,
-1, TP_IFACE_CHANNEL_TYPE_FILE_TRANSFER, "State", tp_file_get_state_cb,
- NULL, NULL, file_obj);
+ NULL, NULL, object);
priv->state_change_reason =
TP_FILE_TRANSFER_STATE_CHANGE_REASON_NONE;
- return file_obj;
+ G_OBJECT_CLASS (empathy_tp_file_parent_class)->constructed (object);
}
static void
@@ -687,7 +680,7 @@ empathy_tp_file_class_init (EmpathyTpFileClass *klass)
object_class->finalize = do_finalize;
object_class->dispose = do_dispose;
- object_class->constructor = do_constructor;
+ object_class->constructed = do_constructed;
object_class->get_property = do_get_property;
object_class->set_property = do_set_property;