[monkey-bubble: 510/753] Make this work with latest Bonobo.
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 510/753] Make this work with latest Bonobo.
- Date: Wed, 14 Jul 2010 22:38:31 +0000 (UTC)
commit 898a2d6c677b484639844f92908eaab4aa1ce2f1
Author: Martin Baulig <martin src gnome org>
Date: Sun Jul 8 19:55:56 2001 +0000
Make this work with latest Bonobo.
test-gnome/testgnome.c | 7 +++----
test-gnome/testgnome.h | 2 +-
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/test-gnome/testgnome.c b/test-gnome/testgnome.c
index 7a304d8..9af14d6 100644
--- a/test-gnome/testgnome.c
+++ b/test-gnome/testgnome.c
@@ -124,8 +124,9 @@ create_newwin(gboolean normal, gchar *appname, gchar *title)
GTK_SIGNAL_FUNC(quit_test), app);
};
app->ui_container = bonobo_ui_container_new ();
- bonobo_ui_container_set_win (app->ui_container,
- BONOBO_WINDOW (app->app));
+ bonobo_ui_container_set_engine (app->ui_container,
+ bonobo_window_get_ui_engine (BONOBO_WINDOW (app->app)));
+
app->ui_component = bonobo_ui_component_new (appname);
bonobo_ui_component_set_container (app->ui_component,
BONOBO_OBJREF(app->ui_container));
@@ -1040,8 +1041,6 @@ main (int argc, char **argv)
gnome_program_init ("testGNOME", VERSION, &libgnomeui_module_info,
argc, argv, NULL);
- if (bonobo_init (&argc, argv) == FALSE)
- g_error ("Could not initialize Bonobo!\n");
app = create_newwin (FALSE, "testGNOME", "testGNOME");
gtk_widget_set_usize (app->app, 200, 300);
box1 = gtk_vbox_new (FALSE, 0);
diff --git a/test-gnome/testgnome.h b/test-gnome/testgnome.h
index 1b722dc..a8b1d76 100644
--- a/test-gnome/testgnome.h
+++ b/test-gnome/testgnome.h
@@ -1,7 +1,7 @@
#ifndef TESTGNOME_H
#define TESTGNOME_H
-#include <bonobo/bonobo-object-client.h>
+#include <bonobo/bonobo-object.h>
#include <bonobo/bonobo-ui-container.h>
#include <bonobo/bonobo-ui-component.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]