From 692886962aec6022d4fab9cdbd9867f2acd7f75c Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 30 Apr 2008 21:44:38 +0000 Subject: Make use of tp-glib debug system. svn path=/trunk/; revision=1066 --- libempathy-gtk/empathy-chat-view.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'libempathy-gtk/empathy-chat-view.c') diff --git a/libempathy-gtk/empathy-chat-view.c b/libempathy-gtk/empathy-chat-view.c index f84ae9e16..491de2269 100644 --- a/libempathy-gtk/empathy-chat-view.c +++ b/libempathy-gtk/empathy-chat-view.c @@ -43,7 +43,6 @@ #include #include -#include #include "empathy-chat-view.h" #include "empathy-chat.h" @@ -52,7 +51,8 @@ #include "empathy-ui-utils.h" #include "empathy-smiley-manager.h" -#define DEBUG_DOMAIN "ChatView" +#define DEBUG_FLAG EMPATHY_DEBUG_CHAT +#include /* Number of seconds between timestamps when using normal mode, 5 minutes. */ #define TIMESTAMP_INTERVAL 300 @@ -208,7 +208,7 @@ chat_view_finalize (GObject *object) view = EMPATHY_CHAT_VIEW (object); priv = GET_PRIV (view); - empathy_debug (DEBUG_DOMAIN, "finalize: %p", object); + DEBUG ("finalize: %p", object); empathy_conf_notify_remove (empathy_conf_get (), priv->notify_system_fonts_id); empathy_conf_notify_remove (empathy_conf_get (), priv->notify_show_avatars_id); @@ -780,7 +780,7 @@ empathy_chat_view_scroll_down (EmpathyChatView *view) return; } - empathy_debug (DEBUG_DOMAIN, "Scrolling down"); + DEBUG ("Scrolling down"); if (priv->scroll_time) { g_timer_reset (priv->scroll_time); @@ -933,8 +933,7 @@ empathy_chat_view_scroll (EmpathyChatView *view, g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view)); - empathy_debug (DEBUG_DOMAIN, "Scrolling %s", - allow_scrolling ? "enabled" : "disabled"); + DEBUG ("Scrolling %s", allow_scrolling ? "enabled" : "disabled"); priv->allow_scrolling = allow_scrolling; if (allow_scrolling) { -- cgit v1.2.3