[monkey-bubble: 547/753] Removed. (create_newwin): Fixed the UI stuff.



commit 82d0656bc8b2e10a97d53630d8129acfdb155d17
Author: Martin Baulig <baulig suse de>
Date:   Sat Jul 21 18:50:12 2001 +0000

    Removed. (create_newwin): Fixed the UI stuff.
    
    2001-07-21  Martin Baulig  <baulig suse de>
    
    	* testgnome.c (create_pixmap): Removed.
    	(create_newwin): Fixed the UI stuff.

 test-gnome/ChangeLog   |    5 +++++
 test-gnome/testgnome.c |   26 ++------------------------
 2 files changed, 7 insertions(+), 24 deletions(-)
---
diff --git a/test-gnome/ChangeLog b/test-gnome/ChangeLog
index a26963c..ba94c9e 100644
--- a/test-gnome/ChangeLog
+++ b/test-gnome/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-21  Martin Baulig  <baulig suse de>
+
+	* testgnome.c (create_pixmap): Removed.
+	(create_newwin): Fixed the UI stuff.
+
 2001-07-19  Michael Meeks  <michael ximian com>
 
 	* testgnome.c (create_newwin): fixup add_verb_list_with_data so
diff --git a/test-gnome/testgnome.c b/test-gnome/testgnome.c
index e59ac5e..ba7f00d 100644
--- a/test-gnome/testgnome.c
+++ b/test-gnome/testgnome.c
@@ -50,7 +50,6 @@ static const gchar *authors[] = {
 static void
 test_exit (TestGnomeApp *app)
 {
-	bonobo_object_unref (BONOBO_OBJECT (app->ui_container));
 	bonobo_object_unref (BONOBO_OBJECT (app->ui_component));
 
 	gtk_widget_destroy (app->app);
@@ -73,8 +72,6 @@ verb_FileClose_cb (BonoboUIComponent *uic, gpointer user_data, const char *cname
 {
 	TestGnomeApp *app = user_data;
 
-	bonobo_object_unref (BONOBO_OBJECT (app->ui_container));
-
 	gtk_widget_destroy (app->app);
 }
 
@@ -125,9 +122,8 @@ create_newwin(gboolean normal, gchar *appname, gchar *title)
 		gtk_signal_connect(GTK_OBJECT(app->app), "delete_event",
 				   GTK_SIGNAL_FUNC(quit_test), app);
 	};
-	app->ui_container = bonobo_ui_container_new ();
-	bonobo_ui_container_set_engine (app->ui_container,
-					bonobo_window_get_ui_engine (BONOBO_WINDOW (app->app)));
+	app->ui_container = bonobo_ui_engine_get_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,
@@ -977,23 +973,6 @@ create_papersel(void)
 }
 
 #endif
-/*
- * Pixmap
- */
-
-static void
-create_pixmap(void)
-{
-	TestGnomeApp *app;
-	GtkWidget *pixmap;
-
-	app = create_newwin(TRUE,"testGNOME","Pixmap");
-	pixmap = gnome_pixmap_new_from_xpm_d ((const gchar **)bomb_xpm);
-
-	bonobo_window_set_contents(BONOBO_WINDOW (app->app),pixmap);
-	gtk_widget_show(pixmap);
-	gtk_widget_show(app->app);
-}
 #if 0
 /*
  * UnitSpinner
@@ -1026,7 +1005,6 @@ main (int argc, char **argv)
 /*		{ "image selector", create_image_selector },*/
 /*		{ "less", create_less }, */
 /*		{ "paper selector", create_papersel },*/
-		{ "pixmap", create_pixmap },
 /*		{ "unit spinner", create_unit_spinner },*/
 	  };
 	int nbuttons = sizeof (buttons) / sizeof (buttons[0]);



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