[drgeo/goffice: 79/82] add a call to go_components_set_mime_suffix.



commit 806ab44b2d06d59c820422b3d50e3485e4cab323
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Sep 10 09:03:29 2006 +0000

    add a call to go_components_set_mime_suffix.
    
    2006-09-10  Jean Brefort  <jean brefort normalesup org>
    
    	* goffice/drgeo.cc: add a call to go_components_set_mime_suffix.

 ChangeLog        |    4 ++++
 goffice/drgeo.cc |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 124cc61..10c43ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,10 @@
 
 	* configure.ac: Addef fi to ALL_LINGUAS
 
+2006-09-10  Jean Brefort  <jean brefort normalesup org>
+
+	* goffice/drgeo.cc: add a call to go_components_set_mime_suffix.
+
 2006-05-08  Jean Brefort  <jean brefort normalesup org>
 
 	* configure.ac: needs libgoffice-0.3 >= 0.3.1.
diff --git a/goffice/drgeo.cc b/goffice/drgeo.cc
index 14948c6..335ee1a 100644
--- a/goffice/drgeo.cc
+++ b/goffice/drgeo.cc
@@ -32,6 +32,7 @@
 #include <glib/gi18n-lib.h>
 #include <gsf/gsf-impl-utils.h>
 #include <goffice/app/module-plugin-defs.h>
+#include <goffice/component/go-component-factory.h>
 #include <locale.h>
 
 extern "C" {
@@ -403,6 +404,7 @@ go_plugin_init (GOPlugin *plugin, GOCmdContext *cc)
 #endif
 	GTypeModule *module = go_plugin_get_type_module (plugin);
 	go_drgeo_component_register_type (module);
+	go_components_set_mime_suffix ("application/x-drgeo", "*.fgeo");
 	mdi = new gofficeMDI ();
 }
 



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