[evolution-data-server/gnome-2-32] Bug #616596 - Disable debug prints from e-categories.c
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-32] Bug #616596 - Disable debug prints from e-categories.c
- Date: Thu, 30 Sep 2010 12:55:48 +0000 (UTC)
commit 718f84eac3e7b0ef0c7c39d94612d4d16e6ac63d
Author: Milan Crha <mcrha redhat com>
Date: Thu Sep 30 14:55:23 2010 +0200
Bug #616596 - Disable debug prints from e-categories.c
libedataserver/e-categories.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/libedataserver/e-categories.c b/libedataserver/e-categories.c
index 8edd98a..b079534 100644
--- a/libedataserver/e-categories.c
+++ b/libedataserver/e-categories.c
@@ -28,6 +28,8 @@
#include "libedataserver-private.h"
+#define d(x)
+
typedef struct {
gchar *display_name; /* localized category name */
gchar *clocale_name; /* only for default categories */
@@ -223,7 +225,7 @@ idle_saver_cb (gpointer user_data)
filename = build_categories_filename ();
- g_debug ("Saving categories to \"%s\"", filename);
+ d(g_debug ("Saving categories to \"%s\"", filename));
/* Build the file contents. */
buffer = g_string_new ("<categories>\n");
@@ -367,7 +369,7 @@ load_categories (void)
if (!g_file_test (filename, G_FILE_TEST_EXISTS))
goto exit;
- g_debug ("Loading categories from \"%s\"", filename);
+ d(g_debug ("Loading categories from \"%s\"", filename));
if (!g_file_get_contents (filename, &contents, &length, &error)) {
g_warning ("Unable to load categories: %s", error->message);
@@ -423,7 +425,7 @@ migrate_old_categories (void)
if (string == NULL || *string == '\0')
goto exit;
- g_debug ("Loading categories from GConf key \"%s\"", key);
+ d(g_debug ("Loading categories from GConf key \"%s\"", key));
n_added = parse_categories (string, strlen (string));
if (n_added == 0)
@@ -508,20 +510,20 @@ initialize_categories (void)
n_added = load_categories ();
if (n_added > 0) {
- g_debug ("Loaded %d categories", n_added);
+ d(g_debug ("Loaded %d categories", n_added));
save_is_pending = FALSE;
return;
}
n_added = migrate_old_categories ();
if (n_added > 0) {
- g_debug ("Loaded %d categories", n_added);
+ d(g_debug ("Loaded %d categories", n_added));
save_categories ();
return;
}
load_default_categories ();
- g_debug ("Loaded default categories");
+ d(g_debug ("Loaded default categories"));
save_categories ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]