[anjal] Fix debug stuffs.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjal] Fix debug stuffs.
- Date: Fri, 4 Sep 2009 03:06:35 +0000 (UTC)
commit a3a8cf5af5e297062e307628ee5ab4c1fadbff38
Author: Srinivasa Ragavan <sragavan novell com>
Date: Fri Aug 28 09:11:16 2009 +0530
Fix debug stuffs.
src/em-tree-store.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/em-tree-store.c b/src/em-tree-store.c
index 2424297..761420b 100644
--- a/src/em-tree-store.c
+++ b/src/em-tree-store.c
@@ -34,7 +34,7 @@
#include "em-tree-store.h"
-#define d(x)
+#define d(x)
#define EMTS(x) ((struct _EMTreeStore *)x)
#define GTK_IS_EMTS(x) (1)
@@ -749,7 +749,7 @@ emts_insert_info_incr(EMTreeStore *emts, CamelMessageInfo *mi, struct _emts_fold
const CamelSummaryReferences *references;
gboolean ret = FALSE;
- printf("inserting new: '%s'\n", camel_message_info_subject(mi));
+ d(printf("inserting new: '%s'\n", camel_message_info_subject(mi)));
/* Allocating a new node, always 'parent' to root to start with */
match = emts_node_alloc(p);
@@ -781,12 +781,12 @@ emts_insert_info_incr(EMTreeStore *emts, CamelMessageInfo *mi, struct _emts_fold
if (NULL == parent->info)
{
- printf(" found an empty parent, pruning\n");
+ d(printf(" found an empty parent, pruning\n"));
emts_prune_empty (emts, parent);
continue;
}
- printf(" found parent, reparenting\n");
+ d(printf(" found parent, reparenting\n"));
node->parent = parent;
//e_dlist_remove((EDListNode *)node);
e_dlist_addtail(&parent->children, (EDListNode *)node);
@@ -815,7 +815,7 @@ emts_insert_info_incr(EMTreeStore *emts, CamelMessageInfo *mi, struct _emts_fold
path = emts_get_path((GtkTreeModel *)emts, &iter);
if (match->parent == emts->root)
gtk_tree_model_row_inserted((GtkTreeModel *)emts, path, &iter);
- printf("Inserted at: %s\n", gtk_tree_path_to_string(path));
+ d(printf("Inserted at: %s\n", gtk_tree_path_to_string(path)));
gtk_tree_path_free(path);
return ret;
@@ -1218,7 +1218,7 @@ em_tree_store_search_folder (EMTreeStore *emts, CamelFolder *folder, const char
}
for (j=0; j<uids->len; j++) {
CamelMessageInfo *mi = camel_folder_get_message_info (f->folder, uids->pdata[j]);
- printf("Inserting %s\n", camel_message_info_subject(mi));
+ d(printf("Inserting %s\n", camel_message_info_subject(mi)));
emts_insert_info_base(emts, mi, f);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]