diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-06-05 21:46:32 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-06-09 17:18:06 +0800 |
commit | 000d345c18bae7db791214b0216f71d630d66e12 (patch) | |
tree | 9e028fb2bb0103c94955e688d5d5c9c3fc90250c /libempathy/empathy-tube-handler.c | |
parent | 927e7227b6cbb423b00962ff2b0bc9d3c737f7d1 (diff) | |
download | gsoc2013-empathy-000d345c18bae7db791214b0216f71d630d66e12.tar gsoc2013-empathy-000d345c18bae7db791214b0216f71d630d66e12.tar.gz gsoc2013-empathy-000d345c18bae7db791214b0216f71d630d66e12.tar.bz2 gsoc2013-empathy-000d345c18bae7db791214b0216f71d630d66e12.tar.lz gsoc2013-empathy-000d345c18bae7db791214b0216f71d630d66e12.tar.xz gsoc2013-empathy-000d345c18bae7db791214b0216f71d630d66e12.tar.zst gsoc2013-empathy-000d345c18bae7db791214b0216f71d630d66e12.zip |
tube-handler: use TpChannel directly instead of EmpathyTpTube
Diffstat (limited to 'libempathy/empathy-tube-handler.c')
-rw-r--r-- | libempathy/empathy-tube-handler.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/libempathy/empathy-tube-handler.c b/libempathy/empathy-tube-handler.c index bbb7e11a6..2b50ec852 100644 --- a/libempathy/empathy-tube-handler.c +++ b/libempathy/empathy-tube-handler.c @@ -31,7 +31,6 @@ #include <extensions/extensions.h> -#include "empathy-tp-tube.h" #include "empathy-tube-handler.h" #define DEBUG_FLAG EMPATHY_DEBUG_OTHER @@ -59,21 +58,10 @@ typedef struct gchar *channel; guint handle_type; guint handle; - EmpathyTpTube *tube; + TpChannel *tube; } IdleData; static void -tube_ready_cb (EmpathyTpTube *tube, - const GError *error, - gpointer user_data, - GObject *weak_object) -{ - IdleData *idle_data = user_data; - - g_signal_emit (idle_data->thandler, signals[NEW_TUBE], 0, tube); -} - -static void tube_ready_destroy_notify (gpointer data) { IdleData *idle_data = data; @@ -100,9 +88,7 @@ channel_ready_cb (TpChannel *channel, return; } - idle_data->tube = empathy_tp_tube_new (channel); - empathy_tp_tube_call_when_ready (idle_data->tube, tube_ready_cb, idle_data, - tube_ready_destroy_notify, NULL); + g_signal_emit (idle_data->thandler, signals[NEW_TUBE], 0, idle_data->tube); g_object_unref (channel); } @@ -183,7 +169,7 @@ empathy_tube_handler_class_init (EmpathyTubeHandlerClass *klass) signals[NEW_TUBE] = g_signal_new ("new-tube", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, - G_TYPE_NONE, 1, EMPATHY_TYPE_TP_TUBE); + G_TYPE_NONE, 1, TP_TYPE_CHANNEL); } static void |