[monkey-bubble: 187/753] Added little bonobo-conf test.
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 187/753] Added little bonobo-conf test.
- Date: Wed, 14 Jul 2010 22:11:23 +0000 (UTC)
commit 7c2fcf9b67030b4b7ce2d74707b7b351d634d8bf
Author: Martin Baulig <baulig suse de>
Date: Sun Apr 22 14:14:17 2001 +0000
Added little bonobo-conf test.
2001-04-22 Martin Baulig <baulig suse de>
* test-libgnome.c (test_bonobo): Added little bonobo-conf test.
libgnome/ChangeLog | 4 ++++
libgnome/test-libgnome.c | 19 +++++++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/libgnome/ChangeLog b/libgnome/ChangeLog
index f92ed26..56aec41 100644
--- a/libgnome/ChangeLog
+++ b/libgnome/ChangeLog
@@ -1,5 +1,9 @@
2001-04-22 Martin Baulig <baulig suse de>
+ * test-libgnome.c (test_bonobo): Added little bonobo-conf test.
+
+2001-04-22 Martin Baulig <baulig suse de>
+
* libgnome-2.0.pc.in: We don't need libgnomebase anymore.
* libgnome-init.c (gnome_oaf_pre_args_parse): Call g_thread_init().
diff --git a/libgnome/test-libgnome.c b/libgnome/test-libgnome.c
index 90a6af1..fe12c38 100644
--- a/libgnome/test-libgnome.c
+++ b/libgnome/test-libgnome.c
@@ -12,6 +12,8 @@
#include <gobject/gvaluetypes.h>
#include <gobject/gparamspecs.h>
+#include <bonobo/libbonobo.h>
+
static int foo = 0;
static struct poptOption options[] = {
@@ -126,6 +128,21 @@ test_properties (GnomeProgram *program)
g_object_set (G_OBJECT (program), "test", TRUE, NULL);
}
+static void
+test_bonobo (GnomeProgram *program)
+{
+ Bonobo_ConfigDatabase db;
+ CORBA_Environment ev;
+
+ CORBA_exception_init (&ev);
+
+ db = bonobo_get_object ("gconf:test-program", "IDL:Bonobo/ConfigDatabase:1.0", &ev);
+
+ g_message (G_STRLOC ": %p", db);
+
+ CORBA_exception_free (&ev);
+}
+
int
main (int argc, char **argv)
{
@@ -173,5 +190,7 @@ main (int argc, char **argv)
test_properties (program);
+ test_bonobo (program);
+
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]