[monkey-bubble: 170/753] update initializations.



commit 6635def31e726ba6bf016c7e6521dbc909192509
Author: Michael Meeks <michael ximian com>
Date:   Wed Apr 18 18:01:44 2001 +0000

    update initializations.
    
    2001-04-18  Michael Meeks  <michael ximian com>
    
    	* tests/*.c: update initializations.
    
    	* bonobo/bonobo-main.c (bonobo_init): add g_type_init.
    	(bonobo_init): add oaf_orb_init, update sig. rename to
    	(bonobo_init_full): this and add (bonobo_init).

 tests/test-storage.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/tests/test-storage.c b/tests/test-storage.c
index 74016cf..1758f00 100644
--- a/tests/test-storage.c
+++ b/tests/test-storage.c
@@ -469,13 +469,11 @@ main (int argc, char *argv [])
 
 	CORBA_exception_init (&ev);
 
-	g_type_init (G_TYPE_DEBUG_NONE);
-
-	orb = oaf_init (argc, argv);
-	
-	if (bonobo_init (orb, NULL, NULL) == FALSE)
+	if (!bonobo_init (&argc, argv))
 		g_error (_("Can not bonobo_init"));
 
+	orb = bonobo_orb ();
+	
 	while ((driver = driver_list [dn++])) {
 		printf ("TEST DRIVER: %s\n", driver);
 		



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]