From 3fb7b7d92bc6b23c7b71a472050fa4ffa7811d30 Mon Sep 17 00:00:00 2001 From: Bharath Acharya Date: Mon, 18 Aug 2008 06:15:31 +0000 Subject: Added a debug macro and turned it off. 2008-08-18 Bharath Acharya * e-icon-factory.c: (e_icon_factory_get_icon_filename), (e_icon_factory_get_icon): Added a debug macro and turned it off. svn path=/trunk/; revision=36013 --- e-util/ChangeLog | 5 +++++ e-util/e-icon-factory.c | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 94a063ff3b..b227df58fe 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2008-08-18 Bharath Acharya + + * e-icon-factory.c: (e_icon_factory_get_icon_filename), + (e_icon_factory_get_icon): Added a debug macro and turned it off. + 2008-08-16 Gilles Dartiguelongue * e-icon-factory.c: (e_icon_size_to_gtk_icon_size), diff --git a/e-util/e-icon-factory.c b/e-util/e-icon-factory.c index e1e60f91fd..aa053001c5 100644 --- a/e-util/e-icon-factory.c +++ b/e-util/e-icon-factory.c @@ -41,6 +41,7 @@ #include "art/broken-image-16.xpm" #include "art/broken-image-24.xpm" +#define d(x) typedef struct { char *name; @@ -278,8 +279,8 @@ e_icon_factory_get_icon_filename (const char *icon_name, int icon_size) &width, &height)) return NULL; - g_message ("Size is %d", icon_size); - g_message ("looking up %s at %dx%d", icon_name, width, height); + d(g_message ("Size is %d", icon_size)); + d(g_message ("looking up %s at %dx%d", icon_name, width, height)); g_static_mutex_lock (&mutex); icon_info = gtk_icon_theme_lookup_icon ( @@ -330,8 +331,8 @@ e_icon_factory_get_icon (const char *icon_name, int icon_size) &width, &height)) return NULL; - g_message ("Size is %d", icon_size); - g_message ("looking up %s at %dx%d", icon_name, width, height); + d(g_message ("Size is %d", icon_size)); + d(g_message ("looking up %s at %dx%d", icon_name, width, height)); size = height; -- cgit v1.2.3