From 884c0337b89dbf4ceab1b4ac327ae099df611c71 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Fri, 26 Oct 2001 22:34:55 +0000 Subject: More abuse. svn path=/trunk/; revision=14176 --- tools/evolution-addressbook-abuse.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tools/evolution-addressbook-abuse.c') 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 #include -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); -- cgit