gnumeric r16640 - in trunk: . src



Author: jbrefort
Date: Sun Jun 22 06:55:52 2008
New Revision: 16640
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16640&view=rev

Log:
2008-06-22  Jean Brefort  <jean brefort normalesup org>

	* src/sheet-object-graph.c: (sog_datas_set_sheet): set the workbook
	as the graph document to support the new image framework.
	* src/workbook-control.c: (wb_control_set_view): set the document for
	the underlying GOControlDoc.



Modified:
   trunk/ChangeLog
   trunk/src/sheet-object-graph.c
   trunk/src/workbook-control.c

Modified: trunk/src/sheet-object-graph.c
==============================================================================
--- trunk/src/sheet-object-graph.c	(original)
+++ trunk/src/sheet-object-graph.c	Sun Jun 22 06:55:52 2008
@@ -36,6 +36,7 @@
 #include "commands.h"
 #include "application.h"
 #include "xml-io.h"
+#include "sheet.h"
 #include <graph.h>
 
 #include <goffice/graph/gog-graph.h>
@@ -152,6 +153,7 @@
 	GSList *ptr = gog_graph_get_data (sog->graph);
 	for (; ptr != NULL ; ptr = ptr->next)
 		sog_data_set_sheet (sog, ptr->data, sheet);
+	g_object_set (sog->graph, "document", ((sheet)? sheet->workbook: NULL), NULL);
 }
 
 static void

Modified: trunk/src/workbook-control.c
==============================================================================
--- trunk/src/workbook-control.c	(original)
+++ trunk/src/workbook-control.c	Sun Jun 22 06:55:52 2008
@@ -412,6 +412,7 @@
 
 	wbv = (opt_view != NULL) ? opt_view : workbook_view_new (opt_wb);
 	wb_view_attach_control (wbv, wbc);
+	go_doc_control_set_doc (GO_DOC_CONTROL (wbc), GO_DOC (wb_view_get_workbook (wbv)));
 }
 
 void



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