]> git.0d.be Git - empathy.git/commitdiff
Adding more debug output.
authorXavier Claessens <xclaesse@gmail.com>
Wed, 25 Jul 2007 16:20:05 +0000 (16:20 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Wed, 25 Jul 2007 16:20:05 +0000 (16:20 +0000)
2007-07-25 Xavier Claessens  <xclaesse@gmail.com>

* libempathy/empathy-filter.c: Adding more debug output.

svn path=/trunk/; revision=192

ChangeLog
libempathy/empathy-filter.c

index 37aefc9b6d42e8adc18229ec9eeffa4bd2a912e5..fd230be5fb12e763550bc6f94c3372fb94d88cc7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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
 2007-07-25 Xavier Claessens  <xclaesse@gmail.com>
 
        * libempathy/empathy-tp-contact-list.c: Add a check to be sure the
index c811991f57cf423187fb4bb6819b649aeeb00e9f..d916b60ddeca45f9d331c6c6591540f408269a21 100644 (file)
@@ -184,13 +184,18 @@ empathy_filter_process (EmpathyFilter *filter,
        EmpathyFilterPriv *priv;
        guint              id;
 
        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));
        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
 }
 
 static gboolean
@@ -223,6 +228,7 @@ empathy_filter_filter_channel (EmpathyFilter  *filter,
 
        g_hash_table_insert (priv->table, tp_chan, GUINT_TO_POINTER (id));
 
 
        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);
        g_signal_emit (filter, signals[NEW_CHANNEL], 0, tp_conn, tp_chan);
 
        g_object_unref (tp_conn);