[Telepathy-commits] [telepathy-salut/master] Replaced more of the old code with the new design.

Jonny Lamb jonny.lamb at collabora.co.uk
Fri Nov 21 03:46:06 PST 2008


20080721200720-8ed0e-fb711f91c0b7d92a1193ff9a7fcd06e9dc9b8359.gz
---
 src/salut-file-channel.c |   20 +++-----------------
 1 files changed, 3 insertions(+), 17 deletions(-)

diff --git a/src/salut-file-channel.c b/src/salut-file-channel.c
index a477f85..61ce44a 100644
--- a/src/salut-file-channel.c
+++ b/src/salut-file-channel.c
@@ -837,30 +837,16 @@ salut_file_channel_received_file_offer (SalutFileChannel *self,
                                         GibberXmppConnection *conn)
 {
   GibberFileTransfer *ft;
-  GHashTable *information;
-  guint id;
 
   ft = gibber_file_transfer_new_from_stanza (stanza, conn);
   g_signal_connect (ft, "error", G_CALLBACK (error_cb), self);
 
   DEBUG ("Received file offer with id '%s'", ft->id);
 
-  information = g_hash_table_new_full (g_str_hash, g_str_equal,
-      (GDestroyNotify) g_free, (GDestroyNotify) value_free);
-  GValue *val = g_new0 (GValue, 1);
-  g_value_init (val, G_TYPE_UINT64);
-  g_value_set_uint64 (val, ft->size);
-  g_hash_table_insert (information, g_strdup ("size"), val);
-
-  /* TODO from mixin: add transfer */
-
-  /* this is a horrible horrible assignment of id to let it compile! It doesn't
-   * much matter as ids aren't being used anymore.
-   */
-  id = 1;
+  self->priv->ft = ft;
 
-  g_hash_table_insert (self->priv->name_to_id, (gchar *) ft->id,
-      GINT_TO_POINTER (id));
+  self->priv->filename = ft->filename;
+  self->priv->size = ft->size;
 }
 
 static void
-- 
1.5.6.5




More information about the Telepathy-commits mailing list