aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-10-27 02:22:26 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-10-27 02:22:26 +0800
commit16144a112edba91cddcba65e2cfac37266a3b1f9 (patch)
tree58d8c103a541eb243a29278598de014e9f89bdc6
parent12333f4dff98802f83a9d0c5f1881345cc3be058 (diff)
downloadgsoc2013-evolution-16144a112edba91cddcba65e2cfac37266a3b1f9.tar.gz
gsoc2013-evolution-16144a112edba91cddcba65e2cfac37266a3b1f9.tar.zst
gsoc2013-evolution-16144a112edba91cddcba65e2cfac37266a3b1f9.zip
make debug info more accurate
2001-10-26 JP Rosevear <jpr@ximian.com> * conduit/address-conduit.c (check_for_slow_setting): make debug info more accurate svn path=/trunk/; revision=14153
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/conduit/address-conduit.c18
2 files changed, 13 insertions, 10 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index e40d74d9b3..7a8822b7b1 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2001-10-26 JP Rosevear <jpr@ximian.com>
+ * conduit/address-conduit.c (check_for_slow_setting): make debug
+ info more accurate
+
+2001-10-26 JP Rosevear <jpr@ximian.com>
+
* conduit/address-conduit.c (e_addr_context_destroy): prevent
double unref
(cursor_cb): correct typo
diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c
index a3bbf4ec1d..adf7615eb9 100644
--- a/addressbook/conduit/address-conduit.c
+++ b/addressbook/conduit/address-conduit.c
@@ -937,19 +937,17 @@ ecard_from_remote_record(EAddrConduitContext *ctxt,
static void
check_for_slow_setting (GnomePilotConduit *c, EAddrConduitContext *ctxt)
{
- int count, map_count;
+ GnomePilotConduitStandard *conduit = GNOME_PILOT_CONDUIT_STANDARD (c);
+ int map_count;
- count = g_list_length (ctxt->cards);
- map_count = g_hash_table_size (ctxt->map->pid_map);
-
- if (map_count == 0) {
- GnomePilotConduitStandard *conduit;
- LOG (" doing slow sync\n");
- conduit = GNOME_PILOT_CONDUIT_STANDARD (c);
+ map_count = g_hash_table_size (ctxt->map->pid_map);
+ if (map_count == 0)
gnome_pilot_conduit_standard_set_slow (conduit, TRUE);
- } else {
+
+ if (gnome_pilot_conduit_standard_get_slow (conduit))
+ LOG (" doing slow sync\n");
+ else
LOG (" doing fast sync\n");
- }
}
static void
nsertions'>+0 * - Chase devel/directfb SHLIB bumpgahr2008-05-311-3/+3 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-201-2/+1 * - Chase devel/sdl12 shlib version bumpmiwi2008-03-131-1/+1 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directorystas2006-09-201-0/+1 * - Respect CFLAGS [1]miwi2006-08-241-1/+2 * - Update freesci to 0.3.5vs2006-05-126-97/+11 * Remove USE_REINPLACE for categories starting with a Gedwin2006-05-081-1/+0 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-8/+8