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 --- src/empathy-status-icon.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/empathy-status-icon.c') diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index 9026315db..aea68d4ea 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -27,7 +27,6 @@ #include #include -#include #include #include @@ -42,11 +41,12 @@ #include "empathy-preferences.h" #include "empathy-filter.h" +#define DEBUG_FLAG EMPATHY_DEBUG_FILTER +#include + #define GET_PRIV(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), \ EMPATHY_TYPE_STATUS_ICON, EmpathyStatusIconPriv)) -#define DEBUG_DOMAIN "StatusIcon" - /* Number of ms to wait when blinking */ #define BLINK_TIMEOUT 500 @@ -95,8 +95,7 @@ status_icon_set_visibility (EmpathyStatusIcon *icon, if (accounts) { mc_accounts_list_free (accounts); } else { - empathy_debug (DEBUG_DOMAIN, - "No enabled account, Showing account dialog"); + DEBUG ("No enabled account, Showing account dialog"); empathy_accounts_dialog_show (GTK_WINDOW (priv->window)); } } @@ -182,8 +181,7 @@ status_icon_activate_cb (GtkStatusIcon *status_icon, { EmpathyStatusIconPriv *priv = GET_PRIV (icon); - empathy_debug (DEBUG_DOMAIN, "Activated: %s", - priv->event ? "event" : "toggle"); + DEBUG ("Activated: %s", priv->event ? "event" : "toggle"); if (priv->event) { empathy_filter_activate_event (priv->filter, priv->event); -- cgit v1.2.3