aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJon Trowbridge <trow@src.gnome.org>2001-10-27 06:34:55 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-10-27 06:34:55 +0800
commit884c0337b89dbf4ceab1b4ac327ae099df611c71 (patch)
tree0db20d3be745cdaaa78023aaad2d40ce8b9fd5c1 /tools
parentef0da865b433ad3d24a73a0710c039649a48ff74 (diff)
downloadgsoc2013-evolution-884c0337b89dbf4ceab1b4ac327ae099df611c71.tar
gsoc2013-evolution-884c0337b89dbf4ceab1b4ac327ae099df611c71.tar.gz
gsoc2013-evolution-884c0337b89dbf4ceab1b4ac327ae099df611c71.tar.bz2
gsoc2013-evolution-884c0337b89dbf4ceab1b4ac327ae099df611c71.tar.lz
gsoc2013-evolution-884c0337b89dbf4ceab1b4ac327ae099df611c71.tar.xz
gsoc2013-evolution-884c0337b89dbf4ceab1b4ac327ae099df611c71.tar.zst
gsoc2013-evolution-884c0337b89dbf4ceab1b4ac327ae099df611c71.zip
More abuse.
svn path=/trunk/; revision=14176
Diffstat (limited to 'tools')
-rw-r--r--tools/evolution-addressbook-abuse.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/evolution-addressbook-abuse.c b/tools/evolution-addressbook-abuse.c
index 67cfd746d7..434ee82f25 100644
--- a/tools/evolution-addressbook-abuse.c
+++ b/tools/evolution-addressbook-abuse.c
@@ -7,7 +7,7 @@
#include <backend/ebook/e-book-util.h>
#include <gnome.h>
-static int cards_to_add = 1000;
+static int cards_to_add = 100;
static int cards_added = 0;
static gchar *
@@ -81,12 +81,11 @@ use_addressbook (EBook *book, gpointer closure)
for (i = 0; i < cards_to_add; ++i) {
gchar *vcard = make_random_vcard ();
ECard *card = e_card_new (vcard);
+ g_message ("adding %d", i);
e_book_add_card (book, card, add_cb, NULL);
g_free (vcard);
gtk_object_unref (GTK_OBJECT (card));
}
-
- gtk_exit (0);
}
int
@@ -101,6 +100,12 @@ main (int argc, char *argv[])
{ NULL, '\0', 0, NULL, 0, NULL, NULL }
};
+ if (getenv ("ABUSE_THE_WOMBAT") == NULL) {
+ g_print ("You probably don't want to use this program.\n"
+ "It isn't very nice.\n");
+ exit(0);
+ }
+
bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR);
textdomain (PACKAGE);