goffice r2121 - trunk/goffice/app
- From: jbrefort svn gnome org
- To: svn-commits-list gnome org
- Subject: goffice r2121 - trunk/goffice/app
- Date: Sun, 22 Jun 2008 07:06:04 +0000 (UTC)
Author: jbrefort
Date: Sun Jun 22 07:06:04 2008
New Revision: 2121
URL: http://svn.gnome.org/viewvc/goffice?rev=2121&view=rev
Log:
removed unused and unimplemented go_doc_choose_image.
Modified:
trunk/goffice/app/go-doc.c
trunk/goffice/app/go-doc.h
Modified: trunk/goffice/app/go-doc.c
==============================================================================
--- trunk/goffice/app/go-doc.c (original)
+++ trunk/goffice/app/go-doc.c Sun Jun 22 07:06:04 2008
@@ -284,12 +284,6 @@
g_signal_emit (G_OBJECT (doc), signals [METADATA_UPDATE], 0);
}
-char const *
-go_doc_choose_image (GODoc *doc, char const *cur_id)
-{
- return NULL;
-}
-
GOImage *
go_doc_get_image (GODoc *doc, char const *id)
{
@@ -336,3 +330,15 @@
g_return_val_if_fail (doc, NULL);
return doc->images;
}
+
+static void
+init_func (gpointer key, gpointer value, gpointer data)
+{
+ go_image_init_save ((GOImage*) value);
+}
+
+void
+go_doc_init_write (GODoc *doc)
+{
+ g_hash_table_foreach (doc->images, init_func, NULL);
+}
Modified: trunk/goffice/app/go-doc.h
==============================================================================
--- trunk/goffice/app/go-doc.h (original)
+++ trunk/goffice/app/go-doc.h Sun Jun 22 07:06:04 2008
@@ -63,10 +63,10 @@
/* put into GODoc (as properties) */
/* Images related functions */
-char const *go_doc_choose_image (GODoc *doc, char const *cur_id);
GOImage *go_doc_get_image (GODoc *doc, char const *id);
GOImage *go_doc_add_image (GODoc *doc, char const *id, GOImage *image);
GHashTable *go_doc_get_images (GODoc *doc);
+void go_doc_init_write (GODoc *doc);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]