Commit 44095eb9 authored by Nat Friedman's avatar Nat Friedman Committed by Nat Friedman

Updated to reflect recent bonobo changes.

1999-06-09  Nat Friedman  <nat@gnome-support.com>

	* src/sheet-view.c (sheet_view_insert_object): Commented out call
 	to gnome_bonobo_object_new_view since the API changed and this
 	function doesn't do anything anyways.

	* src/sheet-object-container.c: Include gnome-component-client.h
 	and view-frame.h.
	(sheet_object_container_land): Pass soc->client_site to
 	gnome_bonobo_object_new_view.  Get the view wrapper widget from
 	the view frame.
	(sheet_object_container_realize): Likewise.
parent ed2baa88
1999-06-09 Nat Friedman <nat@gnome-support.com>
* src/sheet-view.c (sheet_view_insert_object): Commented out call
to gnome_bonobo_object_new_view since the API changed and this
function doesn't do anything anyways.
* src/sheet-object-container.c: Include gnome-component-client.h
and view-frame.h.
(sheet_object_container_land): Pass soc->client_site to
gnome_bonobo_object_new_view. Get the view wrapper widget from
the view frame.
(sheet_object_container_realize): Likewise.
1999-06-09 Morten Welinder <terra@diku.dk>
* src/workbook.c (insert_at_cursor): Use cell_set_value instead of
......
1999-06-09 Nat Friedman <nat@gnome-support.com>
* src/sheet-view.c (sheet_view_insert_object): Commented out call
to gnome_bonobo_object_new_view since the API changed and this
function doesn't do anything anyways.
* src/sheet-object-container.c: Include gnome-component-client.h
and view-frame.h.
(sheet_object_container_land): Pass soc->client_site to
gnome_bonobo_object_new_view. Get the view wrapper widget from
the view frame.
(sheet_object_container_realize): Likewise.
1999-06-09 Morten Welinder <terra@diku.dk>
* src/workbook.c (insert_at_cursor): Use cell_set_value instead of
......
1999-06-09 Nat Friedman <nat@gnome-support.com>
* src/sheet-view.c (sheet_view_insert_object): Commented out call
to gnome_bonobo_object_new_view since the API changed and this
function doesn't do anything anyways.
* src/sheet-object-container.c: Include gnome-component-client.h
and view-frame.h.
(sheet_object_container_land): Pass soc->client_site to
gnome_bonobo_object_new_view. Get the view wrapper widget from
the view frame.
(sheet_object_container_realize): Likewise.
1999-06-09 Morten Welinder <terra@diku.dk>
* src/workbook.c (insert_at_cursor): Use cell_set_value instead of
......
1999-06-09 Nat Friedman <nat@gnome-support.com>
* src/sheet-view.c (sheet_view_insert_object): Commented out call
to gnome_bonobo_object_new_view since the API changed and this
function doesn't do anything anyways.
* src/sheet-object-container.c: Include gnome-component-client.h
and view-frame.h.
(sheet_object_container_land): Pass soc->client_site to
gnome_bonobo_object_new_view. Get the view wrapper widget from
the view frame.
(sheet_object_container_realize): Likewise.
1999-06-09 Morten Welinder <terra@diku.dk>
* src/workbook.c (insert_at_cursor): Use cell_set_value instead of
......
......@@ -693,8 +693,13 @@ void
sheet_view_insert_object (SheetView *sheet_view, GnomeObjectClient *object)
{
GtkWidget *view;
view = gnome_bonobo_object_new_view (object);
/*
* Commented out because the new_view api changed and it isn't
* used anyways.
*/
/* view = gnome_bonobo_object_new_view (object); */
g_warning ("Stick this into the SheetView");
}
#endif
......@@ -16,6 +16,8 @@
#include "sheet-object-container.h"
#include <bonobo/gnome-container.h>
#include <bonobo/gnome-component.h>
#include <bonobo/gnome-component-client.h>
#include <bonobo/gnome-view-frame.h>
#if 0
#include "PlotComponent.h"
......@@ -109,10 +111,13 @@ sheet_object_container_land (SheetObject *so)
for (l = so->sheet->sheet_views; l; l = l->next){
GnomeCanvasItem *item;
SheetView *sheet_view = l->data;
GtkWidget *view;
GnomeViewFrame *view_frame;
GtkWidget *view_widget;
view = gnome_bonobo_object_new_view (soc->object_server);
item = make_container_item (so, sheet_view, view);
view_frame = gnome_bonobo_object_new_view (soc->object_server,
soc->client_site);
view_widget = gnome_view_frame_get_wrapper (view_frame);
item = make_container_item (so, sheet_view, view_widget);
so->realized_list = g_list_prepend (so->realized_list, item);
}
}
......@@ -122,17 +127,21 @@ sheet_object_container_realize (SheetObject *so, SheetView *sheet_view)
{
SheetObjectContainer *soc;
GnomeCanvasItem *i;
GtkWidget *w;
GnomeViewFrame *view_frame;
GtkWidget *view_widget;
soc = SHEET_OBJECT_CONTAINER (so);
if (soc->client_site == NULL)
w = gtk_button_new_with_label (_("Object server"));
view_widget = gtk_button_new_with_label (_("Object server"));
else {
w = gnome_bonobo_object_new_view (soc->object_server);
view_frame = gnome_bonobo_object_new_view (soc->object_server,
soc->client_site);
view_widget = gnome_view_frame_get_wrapper (view_frame);
}
i = make_container_item (so, sheet_view, w);
i = make_container_item (so, sheet_view, view_widget);
return i;
}
......
......@@ -693,8 +693,13 @@ void
sheet_view_insert_object (SheetView *sheet_view, GnomeObjectClient *object)
{
GtkWidget *view;
view = gnome_bonobo_object_new_view (object);
/*
* Commented out because the new_view api changed and it isn't
* used anyways.
*/
/* view = gnome_bonobo_object_new_view (object); */
g_warning ("Stick this into the SheetView");
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment