[monkey-bubble: 563/753] Ported to changed BonoboGenericFactory API



commit 7611bc418df9299a52f48d8b7320d3e566b737a2
Author: ERDI Gergo <cactus cactus rulez org>
Date:   Sat Jul 28 17:51:25 2001 +0000

    Ported to changed BonoboGenericFactory API
    
    
    2001-07-28  ERDI Gergo  <cactus cactus rulez org>
    
    * monikers/bonobo-moniker-*.c: Ported to changed
    BonoboGenericFactory API
    
    * configure.in: depend on libbonobo 1.98.0

 ChangeLog             |    7 +++++++
 configure.in          |    2 +-
 monikers/test-ditem.c |   14 +++++++-------
 3 files changed, 15 insertions(+), 8 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5689331..6b89b51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-07-28  ERDI Gergo  <cactus cactus rulez org>
+
+	* monikers/bonobo-moniker-*.c: Ported to changed
+	BonoboGenericFactory API
+
+	* configure.in: depend on libbonobo 1.98.0
+
 2001-07-27  Michael Meeks  <michael ximian com>
 
 	* configure.in: add xml-i18n tools.
diff --git a/configure.in b/configure.in
index fa7c217..b12e0ce 100644
--- a/configure.in
+++ b/configure.in
@@ -63,7 +63,7 @@ AC_SUBST(REBUILD)
 dnl
 dnl Start of pkg-config checks
 dnl
-PKG_CHECK_MODULES(LIBGNOME, ORBit-2.0 >= 2.3.90 glib-2.0 >= 1.3.1 gnome-vfs-2.0 oaf-2.0 libxml-2.0 libbonobo-2.0 >= 1.97.0)
+PKG_CHECK_MODULES(LIBGNOME, ORBit-2.0 >= 2.3.90 glib-2.0 >= 1.3.1 gnome-vfs-2.0 oaf-2.0 libxml-2.0 libbonobo-2.0 >= 1.98.0)
 AC_SUBST(LIBGNOME_CFLAGS)
 AC_SUBST(LIBGNOME_LIBS)
 
diff --git a/monikers/test-ditem.c b/monikers/test-ditem.c
index 4826976..412af1d 100644
--- a/monikers/test-ditem.c
+++ b/monikers/test-ditem.c
@@ -35,7 +35,7 @@ test_ditem (Bonobo_ConfigDatabase db)
 	const gchar *text;
 	GSList *list, *c;
 
-	ditem = gnome_desktop_item_new_from_file ("/home/martin/work/test.desktop",
+	ditem = gnome_desktop_item_new_from_file ("/tmp/test.desktop",
 						  GNOME_DESKTOP_ITEM_LOAD_ONLY_IF_EXISTS);
 
 	text = gnome_desktop_item_get_location (ditem);
@@ -81,7 +81,7 @@ test_ditem (Bonobo_ConfigDatabase db)
 	gnome_desktop_item_save (ditem, NULL);
 #endif
 
-	gnome_desktop_item_save (ditem, "~/work/foo.desktop");
+	gnome_desktop_item_save (ditem, "/tmp/foo.desktop");
 }
 
 #if 0
@@ -94,11 +94,11 @@ test_builtin (void)
 	BonoboArg *value;
 	gchar *string;
 
-	db = bonobo_config_ditem_new ("/home/martin/work/test.desktop");
+	db = bonobo_config_ditem_new ("/tmp/test.desktop");
 	g_assert (db != CORBA_OBJECT_NIL);
 
 	CORBA_exception_init (&ev);
-	parent_db = bonobo_get_object ("xmldb:~/work/foo.xmldb", "Bonobo/ConfigDatabase", &ev);
+	parent_db = bonobo_get_object ("xmldb:/tmp/foo.xmldb", "Bonobo/ConfigDatabase", &ev);
 	g_assert (!BONOBO_EX (&ev) && parent_db != CORBA_OBJECT_NIL);
 	CORBA_exception_free (&ev);
 
@@ -133,15 +133,15 @@ main (int argc, char **argv)
 
 	// test_builtin ();
 
-	// db = bonobo_config_ditem_new ("~/work/test.desktop");
+	// db = bonobo_config_ditem_new ("/tmp/test.desktop");
 
         CORBA_exception_init (&ev);
-	db = bonobo_get_object ("ditem:~/work/test.desktop", "Bonobo/ConfigDatabase", &ev);
+	db = bonobo_get_object ("ditem:/tmp/test.desktop", "Bonobo/ConfigDatabase", &ev);
 	g_assert (!BONOBO_EX (&ev));
         CORBA_exception_free (&ev);
 
         CORBA_exception_init (&ev);
-	default_db = bonobo_get_object ("xmldb:~/work/foo.xml", "Bonobo/ConfigDatabase", &ev);
+	default_db = bonobo_get_object ("xmldb:/tmp/foo.xml", "Bonobo/ConfigDatabase", &ev);
 	g_assert (!BONOBO_EX (&ev));
         CORBA_exception_free (&ev);
 



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