aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-05-06 21:03:46 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:47:40 +0800
commit6a0da1dbef905ec7bf93e6d1c0eca6c6b8dfdb4a (patch)
treed7e7b646e1e5899d837acb0ef72e9a163d1b7dda /libempathy
parentc0a0111bcdb1d0f65e718883eeea4da868374e2e (diff)
downloadgsoc2013-empathy-6a0da1dbef905ec7bf93e6d1c0eca6c6b8dfdb4a.tar
gsoc2013-empathy-6a0da1dbef905ec7bf93e6d1c0eca6c6b8dfdb4a.tar.gz
gsoc2013-empathy-6a0da1dbef905ec7bf93e6d1c0eca6c6b8dfdb4a.tar.bz2
gsoc2013-empathy-6a0da1dbef905ec7bf93e6d1c0eca6c6b8dfdb4a.tar.lz
gsoc2013-empathy-6a0da1dbef905ec7bf93e6d1c0eca6c6b8dfdb4a.tar.xz
gsoc2013-empathy-6a0da1dbef905ec7bf93e6d1c0eca6c6b8dfdb4a.tar.zst
gsoc2013-empathy-6a0da1dbef905ec7bf93e6d1c0eca6c6b8dfdb4a.zip
Add the USE_HASH property in class_init
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-ft-handler.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index 6caf4d1a8..5e6d02922 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -244,21 +244,26 @@ empathy_ft_handler_class_init (EmpathyFTHandlerClass *klass)
param_spec = g_param_spec_object ("contact",
"contact", "The remote contact",
EMPATHY_TYPE_CONTACT,
- G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY);
g_object_class_install_property (object_class, PROP_CONTACT, param_spec);
param_spec = g_param_spec_object ("gfile",
"gfile", "The GFile we're handling",
G_TYPE_FILE,
- G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY);
g_object_class_install_property (object_class, PROP_G_FILE, param_spec);
param_spec = g_param_spec_object ("tp-file",
"tp-file", "The file's channel wrapper",
EMPATHY_TYPE_TP_FILE,
- G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY);
g_object_class_install_property (object_class, PROP_TP_FILE, param_spec);
+ param_spec = g_param_spec_boolean ("use-hash",
+ "use-hash", "Whether we should use checksum when sending or receiving",
+ FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY);
+ g_object_class_install_property (object_class, PROP_USE_HASH, param_spec);
+
/* signals */
signals[TRANSFER_STARTED] =
g_signal_new ("transfer-started", G_TYPE_FROM_CLASS (klass),