aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-07-26 00:20:05 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-07-26 00:20:05 +0800
commit46dc4b38e7c6a255c4180ddcd8e0d32524a232eb (patch)
treec059f0e10d150d4a298826f4512ee67acd2b8908
parentf07a700ce8cc0c5d0f892d357ececc47e601aecd (diff)
downloadgsoc2013-empathy-46dc4b38e7c6a255c4180ddcd8e0d32524a232eb.tar
gsoc2013-empathy-46dc4b38e7c6a255c4180ddcd8e0d32524a232eb.tar.gz
gsoc2013-empathy-46dc4b38e7c6a255c4180ddcd8e0d32524a232eb.tar.bz2
gsoc2013-empathy-46dc4b38e7c6a255c4180ddcd8e0d32524a232eb.tar.lz
gsoc2013-empathy-46dc4b38e7c6a255c4180ddcd8e0d32524a232eb.tar.xz
gsoc2013-empathy-46dc4b38e7c6a255c4180ddcd8e0d32524a232eb.tar.zst
gsoc2013-empathy-46dc4b38e7c6a255c4180ddcd8e0d32524a232eb.zip
Adding more debug output.
2007-07-25 Xavier Claessens <xclaesse@gmail.com> * libempathy/empathy-filter.c: Adding more debug output. svn path=/trunk/; revision=192
-rw-r--r--ChangeLog4
-rw-r--r--libempathy/empathy-filter.c14
2 files changed, 14 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 37aefc9b6..fd230be5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-07-25 Xavier Claessens <xclaesse@gmail.com>
+ * libempathy/empathy-filter.c: Adding more debug output.
+
+2007-07-25 Xavier Claessens <xclaesse@gmail.com>
+
* libempathy/empathy-tp-contact-list.c: Add a check to be sure the
new channel is valid in the NewChannel cb. Fixes bug #451564.
diff --git a/libempathy/empathy-filter.c b/libempathy/empathy-filter.c
index c811991f5..d916b60dd 100644
--- a/libempathy/empathy-filter.c
+++ b/libempathy/empathy-filter.c
@@ -184,13 +184,18 @@ empathy_filter_process (EmpathyFilter *filter,
EmpathyFilterPriv *priv;
guint id;
+ g_return_if_fail (EMPATHY_IS_FILTER (filter));
+ g_return_if_fail (TELEPATHY_IS_CHAN (tp_chan));
+
priv = GET_PRIV (filter);
id = GPOINTER_TO_UINT (g_hash_table_lookup (priv->table, tp_chan));
- if (id != 0) {
- g_signal_emit (filter, signals[PROCESS], 0, id, process);
- g_hash_table_remove (priv->table, tp_chan);
- }
+ g_return_if_fail (id != 0);
+
+ empathy_debug (DEBUG_DOMAIN, "Processing channel id %d: %s",
+ id, process ? "Yes" : "No");
+ g_signal_emit (filter, signals[PROCESS], 0, id, process);
+ g_hash_table_remove (priv->table, tp_chan);
}
static gboolean
@@ -223,6 +228,7 @@ empathy_filter_filter_channel (EmpathyFilter *filter,
g_hash_table_insert (priv->table, tp_chan, GUINT_TO_POINTER (id));
+ empathy_debug (DEBUG_DOMAIN, "New channel to be filtred: %d", id);
g_signal_emit (filter, signals[NEW_CHANNEL], 0, tp_conn, tp_chan);
g_object_unref (tp_conn);