diff options
author | Not Zed <NotZed@Ximian.com> | 2005-03-04 11:07:18 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2005-03-04 11:07:18 +0800 |
commit | 9b6b99d33db08122c8bd039f15f197c5ae7cb5d1 (patch) | |
tree | 6698198e726c42c6b83371cb4daefb85d5b67a84 /e-util/e-account.c | |
parent | 15963543eff3dfaec694f12c1a34129b44f518a3 (diff) | |
download | gsoc2013-evolution-9b6b99d33db08122c8bd039f15f197c5ae7cb5d1.tar.gz gsoc2013-evolution-9b6b99d33db08122c8bd039f15f197c5ae7cb5d1.tar.zst gsoc2013-evolution-9b6b99d33db08122c8bd039f15f197c5ae7cb5d1.zip |
Remove/disable debug.
2005-03-01 Not Zed <NotZed@Ximian.com>
* *.c: Remove/disable debug.
svn path=/trunk/; revision=28948
Diffstat (limited to 'e-util/e-account.c')
-rw-r--r-- | e-util/e-account.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/e-util/e-account.c b/e-util/e-account.c index b919a56cc2..79cc78e282 100644 --- a/e-util/e-account.c +++ b/e-util/e-account.c @@ -33,6 +33,8 @@ #include <gconf/gconf-client.h> +#define d(x) + enum { CHANGED, LAST_SIGNAL @@ -820,6 +822,7 @@ gboolean e_account_get_bool(EAccount *ea, e_account_item_t type) return *((gboolean *)addr(ea, type)); } +#if d(!)0 static void dump_account(EAccount *ea) { @@ -830,6 +833,7 @@ dump_account(EAccount *ea) printf(" ->\n%s\n", xml); g_free(xml); } +#endif /* TODO: should it return true if it changed? */ void e_account_set_string(EAccount *ea, e_account_item_t type, const char *val) @@ -840,13 +844,12 @@ void e_account_set_string(EAccount *ea, e_account_item_t type, const char *val) g_warning("Trying to set non-writable option account value"); } else { p = (char **)addr(ea, type); - printf("Setting string %d: old '%s' new '%s'\n", type, *p, val); + d(printf("Setting string %d: old '%s' new '%s'\n", type, *p, val)); if (*p != val && (*p == NULL || val == NULL || strcmp(*p, val) != 0)) { g_free(*p); *p = g_strdup(val); - - dump_account(ea); + d(dump_account(ea)); g_signal_emit(ea, signals[CHANGED], 0, type); } } @@ -861,7 +864,7 @@ void e_account_set_int(EAccount *ea, e_account_item_t type, int val) if (*p != val) { *p = val; - dump_account(ea); + d(dump_account(ea)); g_signal_emit(ea, signals[CHANGED], 0, type); } } @@ -876,7 +879,7 @@ void e_account_set_bool(EAccount *ea, e_account_item_t type, gboolean val) if (*p != val) { *p = val; - dump_account(ea); + d(dump_account(ea)); g_signal_emit(ea, signals[CHANGED], 0, type); } } @@ -899,7 +902,7 @@ e_account_writable_option(EAccount *ea, const char *protocol, const char *option info = g_hash_table_lookup(ea_option_table, key); } - printf("checking writable option '%s' perms=%08x\n", option, info?info->perms:0); + d(printf("checking writable option '%s' perms=%08x\n", option, info?info->perms:0)); return info == NULL || (info->perms & ea_perms) == 0; |