[telepathy-gabble/master] use tp-glib constants in uint properties definitions

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Mar 30 02:57:50 PDT 2009


---
 src/file-transfer-channel.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/file-transfer-channel.c b/src/file-transfer-channel.c
index 3c36bdb..0726938 100644
--- a/src/file-transfer-channel.c
+++ b/src/file-transfer-channel.c
@@ -597,8 +597,8 @@ gabble_file_transfer_channel_class_init (
       "TpFileTransferState state",
       "State of the file transfer in this channel",
       0,
-      G_MAXUINT,
-      0,
+      NUM_TP_FILE_TRANSFER_STATES,
+      TP_FILE_TRANSFER_STATE_NONE,
       G_PARAM_CONSTRUCT_ONLY |
       G_PARAM_READWRITE |
       G_PARAM_STATIC_NICK |
@@ -643,10 +643,10 @@ gabble_file_transfer_channel_class_init (
 
   param_spec = g_param_spec_uint (
       "content-hash-type",
-      "GabbleFileHashType content-hash-type",
+      "TpFileHashType content-hash-type",
       "Hash type",
       0,
-      G_MAXUINT,
+      NUM_TP_FILE_HASH_TYPES,
       TP_FILE_HASH_TYPE_NONE,
       G_PARAM_CONSTRUCT_ONLY |
       G_PARAM_READWRITE |
-- 
1.5.6.5




More information about the telepathy-commits mailing list